[R-SIG-Mac]getting round the absence of system() on R for Mac
Stefano Iacus
stefano.iacus@unimi.it
Tue, 25 Sep 2001 11:07:31 +0200
Greg,
I'll check this later but you can use the following
applescript("",":RunChullProgram")
that should work.
I also invite you and other R users to develop some examples like yours
to distribute along with the R binaries.
Stefano
On Marted́, settembre 25, 2001, at 12:51 , Greg Jefferis wrote:
> Dear Stefano,
>
> Thanks for the response. That will be very useful. That seems to work
> fine. I have one suggestion to make though. The first thing I tried
> was:
>
>> applescript(getwd(),"RunChullProgram")
>
> Error in applescript(path, scriptname) : Cannot find script file
>
> because I had put my script in my working directory. However that
> doesn't
> work because applescript() is expecting a path without a trailing
> colon. So
> I had to do:
>
> applescript(substring(getwd(),1,nchar(getwd())-1),"RunChullProgram")
>
> which seems a little cumbersome. Perhaps at the next iteration, you
> could
> change the function so that it ignores terminal colons in the path.
>
> Many thanks - and of course thank you so much for your contribution in
> maintaining the R port for Mac which I have found tremendously useful.
>
> Best,
>
> Greg.
>
>
>
>