[R] using command line flags with TINN-R

Philippe Grosjean phgrosjean at sciviews.org
Thu Apr 7 07:53:08 CEST 2005


roger bos wrote:
> This is a TINN-R editor question rather than an R question, but can
> anyone tell me how to use command line flags with TINN-R.  There is a
> space to fill in the path to Rgui, and I have "C:\Program
> Files\R\rw2001pat\bin\Rgui.exe".  If I try to add a command line flag
> after that, such as " --no-save" or " --max-mem-size" then TINN-R will
> not open the application.

No that does not work, but you can consider working in the other way: 
starting Tinn-R while you start R. Then you have all the flexibility to 
define whatever command line argument you want for R.

There are many ways to do so, but I personally use the following one:

1) I define:

 > options(IDE = "c:/program files/tinn-R/bin/tinn-R.exe")

(of course, the path should reflect the place you actually installed 
Tinn-R!)

and then, I start the svGUI package (from the SciViews bundle available 
on CRAN).

 > library(svGUI)

Tinn-R is started (if not already running), and also, the R call-tip 
server (live calculation of call-tips for the syntax of R functions) is 
activated behind the scene.

If you are happy with this, and would like to start Tinn-R and activate 
the R call-tip server automatically everytime you start R, just add 
those two lines of code in your 'Rprofile' file (the general 'Rprofile' 
is in /etc subdirectory of the R directory).

Once it is done, do not worry about starting Tinn-R, or R from within 
Tinn-R, just start R with all the command line options you like, and you 
get Tinn-R started automatically (if it is not running yet)!

Note that this tip is in FAQ 3.8, in the new version of Tinn-R FAQ to be 
  released soon, together with the latest stable Tinn-R 1.15.1.7 next 
week or so ;-)

Best,

Philippe

..............................................<°}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Pentagone (3D08)
( ( ( ( (    Academie Universitaire Wallonie-Bruxelles
  ) ) ) ) )   8, av du Champ de Mars, 7000 Mons, Belgium
( ( ( ( (
  ) ) ) ) )   phone: + 32.65.37.34.97, fax: + 32.65.37.30.54
( ( ( ( (    email: Philippe.Grosjean at umh.ac.be
  ) ) ) ) )
( ( ( ( (    web:   http://www.umh.ac.be/~econum
  ) ) ) ) )          http://www.sciviews.org
( ( ( ( (
..............................................................




More information about the R-help mailing list