[R-SIG-Mac] New user question

Don MacQueen macq at llnl.gov
Wed Mar 28 20:50:10 CEST 2007

I've not done this myself, so I have only a general idea of what might work.

Applescript can execute unix shell scripts, so you could write a 
simple unix shell script that would run R in batch mode.
Actually, Applescript may be able to directly issue arbitrary unix 
commands, which in your case might be something like
    R < inputfile.r > outputile.txt
or maybe
    R CMD BATCH options infile  outfile
(type R CMD BATCH --help at a shell prompt)

I imagine that Applescript has commands for asking the user for 
input, which Applescript could then add to the batch command as 

So I think something could be cobbled together. Might be kind of 
crude, but it should be usable.


At 1:28 PM -0400 3/27/07, Linda Palmer wrote:
>Dear R Mac developers group,
>I hope this question is appropriate for this list.
>I'm a new user (a few months) and R has been great. Thank you!
>If it's possible, I'd like to make a simple GUI or other front end to a
>few of my R scripts for my non-coding colleagues to use (or even little
>stand-alone apps.)
>Could Automator or AppleScript, or something else, be used to do this?
>(I don't know either yet; looking at Automator it wasn't immediately
>clear to me whether or not it can talk to R.) Any recommendations
>Many thanks,
>Linda Palmer
>R-SIG-Mac mailing list
>R-SIG-Mac at stat.math.ethz.ch

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

More information about the R-SIG-Mac mailing list