[R] R command to open a file browser on Windows and Mac?

2015-08-03 Thread Jonathan Greenberg
Folks: Is there an easy function to open a finder window (on mac) or windows explorer window (on windows) given an input folder? A lot of times I want to be able to see via a file browser my working directory. Is there a good R hack to do this? --j [[alternative HTML version deleted]]

Re: [R] R command to open a file browser on Windows and Mac?

2015-08-03 Thread Duncan Murdoch
On 03/08/2015 11:19 AM, Jonathan Greenberg wrote: Folks: Is there an easy function to open a finder window (on mac) or windows explorer window (on windows) given an input folder? A lot of times I want to be able to see via a file browser my working directory. Is there a good R hack to do

Re: [R] R command to open a file browser on Windows and Mac?

2015-08-03 Thread Mark Sharp
Set your path with setwd(“my_path”) and then use file.choose(). You could have gotten this information sooner with a simple online search. Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549

Re: [R] R command to open a file browser on Windows and Mac?

2015-08-03 Thread Barry Rowlingson
And for completeness, on linux: system(paste0(xdg-open ,getwd())) there's a function in a package somewhere that hides the system dependencies of opening things with the appropriate application, and if you pass a folder/directory to it I reckon it will open it in the