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 this?
On Windows, shell.exec(dir) will open Explorer at that directory. (It'll do something else if dir isn't a directory name, or has spaces in it without quotes, so you need to be a little careful.) On OSX, system2("open", dir) should do the same. Duncan Murdoch ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.