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]]
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
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
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
4 matches
Mail list logo