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

2016-11-02 Thread Bob Rudis
Issue an applescript event to Excel to tell it to close the file. You can do that from the system command, but it's really not R-related (it's more about how to issue apple events from the command line). On Wed, Nov 2, 2016 at 10:21 AM, Christofer Bogaso wrote: > Thanks, working perfectly. Any id

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

2016-11-02 Thread Christofer Bogaso
Thanks, working perfectly. Any idea on forcibly closing that same file through R. Thanks again. On Wed, Nov 2, 2016 at 7:45 PM, Simon Urbanek wrote: > >> On Nov 2, 2016, at 10:02 AM, Christofer Bogaso >> wrote: >> >> Hi, >> >> I was wondering if there is any R way to open/close (forcibly) any

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

2016-11-02 Thread Simon Urbanek
> On Nov 2, 2016, at 10:02 AM, Christofer Bogaso > 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

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

2016-11-02 Thread Christofer Bogaso
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 <> in the underlying folder name. Can anyone here please help me with some