I need to write a small R script for people who never used R before that imports a file and does some things with it. I would like to minimize user input as much as possible, and since assigning the file-path is basically all the user input required I was wondering, is it possible to get a popup screen (basically your usual “open file” screen) allowing someone to select a file (import the name as string in R or something)?
Share
The
file.choosefunction performs this, eg:You may also want to look at
choose.files(for multiple files) andchoose.dir(for just selecting a directory path).