I’ve been experimenting with R for a few days – loving the program. I just started trying to write scripts. I’m trying to write a script that reads in data from a file. I’d like a dialog box to select the file. I pasted my script below but when I execute this script no dialog box appears. I’m running the program in terminal on a Mac. Any ideas?
`#store the current directory
#set the output
spread<-read.table(file.choose(), sep=”,”, header=TRUE)