Try this; specify where you want the second one to start: files.a <- choose.files() # now change to the directory of the first file name to continue search files.b <- choose.files(paste(dirname(files.a[1L]), "*", sep='/'))
On Tue, Mar 2, 2010 at 12:17 PM, Caleb Rounds <caleb.rou...@gmail.com> wrote: > I have recently upgraded to R 2.10.1 on Windows XP and am using > scripts that I've used in previous versions successfully. I'm having a > problem with choose.files. The lines read: > > fura_scan_file<-choose.files(caption="Select log file (*.log) for fura-2 > scans") > PI_scan_file<-choose.files(caption="Select log file (*.log) for PI scans") > > > The problem is that the directory chosen after the first choose.files > is not remembered. This is an issue b/c my files are nested inside of > several directories and it takes a lot of clicking to get to where I > need to be. Is there a problem with these lines? Is it likely > elsewhere in the script? > > I apologize for my ignorance and wasting time, but in the > documentation for choose.files it suggests this should happen > automatically. > > Caleb Rounds > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.