[R] Anything like dir.choose (similar to file.choose) in R?

2005-08-15 Thread Earl F. Glynn
Does R have a dir.choose function? I can use file.choose like this as a kludge to get something like a dir.choose, but a real dir.choose would be better: cat(Select one of files in directory to process:\n) filename - gsub(, /, file.choose()) basepath - dirname(filename) Windows

Re: [R] Anything like dir.choose (similar to file.choose) in R?

2005-08-15 Thread Liaw, Andy
If you can use the `tcltk' package, Prof. John Fox had pointed this out to me before: dir - tclvalue(tkchooseDirectory()) Andy From: Earl F. Glynn Does R have a dir.choose function? I can use file.choose like this as a kludge to get something like a dir.choose, but a real dir.choose