Re: [R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread Christofer Bogaso
Hi Elijah, your suggestion is perfect - basically, I need to use ';' as separator between multiple lines of iOS code. Thanks for this pointer. On Tue, Oct 10, 2017 at 11:46 PM, elijah wright wrote: > something like: > > system("PWD=`pwd`; cd TARGETDIR; ./runme.sh; cd $PWD') will do basically this

Re: [R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread elijah wright
something like: system("PWD=`pwd`; cd TARGETDIR; ./runme.sh; cd $PWD') will do basically this. Every time you run the system call it should be spawning a new shell with a fresh environment. --e On Tue, Oct 10, 2017 at 12:58 PM, Christofer Bogaso wrote: > Hi again, > > I need to execute few li

Re: [R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread Marc Schwartz
I was kind of wondering that myself...given the frequent prior discussions here regarding running R on iOS... :-) My recommendation would be to use R's built in file/folder/path related functionality, such as: ?getwd (which includes ?setwd) ?list.files ?file.info ?files and other re

Re: [R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread Christofer Bogaso
Yes macOS - High Sierra On Tue, Oct 10, 2017 at 11:33 PM, elijah wright wrote: > Did you mean macOS? I am not aware of anything that can run both R > and iOS code - if there's some fancy thing out there that can, i would > like to know about that. ;-) > > --e > > > On Tue, Oct 10, 2017 at 12:58

Re: [R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread elijah wright
Did you mean macOS? I am not aware of anything that can run both R and iOS code - if there's some fancy thing out there that can, i would like to know about that. ;-) --e On Tue, Oct 10, 2017 at 12:58 PM, Christofer Bogaso wrote: > Hi again, > > I need to execute few line of system codes for

[R-SIG-Mac] Executing iOS system code within R

2017-10-10 Thread Christofer Bogaso
Hi again, I need to execute few line of system codes for iOS from R. Basically that execution involves (as an example) : 1. Change the Working directory first 2. Execute some task (e.g.deleting a file) 3. Then go back to original folder/directory I am aware of system() function which can be used