When I change the working directory (for example, from dir1 to dir2), try using select.files (), the first time select.files () starts it in dir1. If I canceled and ran select.files () a second time, then it opens in the dir2 directory. How can I get select.files () to open in the current working directory itself?
(I ran into another problem with file.choose (), so I cannot use this function as a replacement)
Here is an example:
getwd()
setwd(choose.dir())
getwd()
choose.files()
choose.files()
I would like to use this progression to select a file from the current working directory. Appreciate any ideas. Thanks!
source
share