[R] Passing a workspace file as argument

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu May 10 09:01:17 CEST 2001


On Thu, 10 May 2001, Victor Moreno wrote:

> What is the best way (if possible) to pass the name of a workspace file to R
> when it starts so it is loaded instead of .RData ?

Why do you want to do that?  R loads the .Rdata in the working directory,
the directory from which it is started, so just cd and then launch R.

> I would like to know this for Linux and windows version. For windows I would
> like to associate the .RData extension so doubleclicking the file starts R
> and loads it.

Then please submit a patch for that. (You could probably do this via a .bat
file.)  Drag-and-drop to a Desktop icon might be nice while you are at it,
too.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list