Skip to content
Prev 3503 / 15075 Next

New user question

Hi All,
R.app, as Jorg says, has very-very limited apple script support. I  
originally implemented it and it is very weak (for several reasons,  
e.g. no feedback is returned from the executed command; no synch, etc)
Any contribution to add more scriptability to R.app is welcome.

If it is just a matter of running R scripts, then going directly to  
R.app :File-> Source file is enough. You can also configure R to  
source scripts by default on drag&drop, which should be also an  
interesting shortcut.
Of course, you can create an applescript to source a script into R,  
i.e with something like "tell R.app cmd source(file)"

The tcltk package might be a solution but you need the user to  
install X11, which is usually not installed by default of OS X machines.

An alternative is to create a Cocoa app on top of the cmd line  
version of R for each of your ad-hoc scripts. There are several  
examples of Cocoa GUIs built on top of unix commands (i.e. mplayer,  
ffmpegx, etc)

stefano
On 28/mar/07, at 20:19, J?rg Beyer wrote: