[R-SIG-Mac] R code to open and close a file in Mac

Simon Urbanek simon.urbanek at r-project.org
Wed Nov 2 15:15:56 CET 2016


> On Nov 2, 2016, at 10:02 AM, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
> 
> Hi,
> 
> I was wondering if there is any R way to open/close (forcibly) any
> file (preferably Excel) within Mac. I have tried with system()
> function, however it generates error saying ".. No such file or
> directory" since I have <<space>> in the underlying folder name.
> 

system(paste("open", shQuote(filename)),wait=FALSE)



> Can anyone here please help me with some workaround particularly on
> how to handle Space in file/folder name.
> 
> Thanks for your time.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 



More information about the R-SIG-Mac mailing list