[R] Execute R with *.RData argument

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Mar 27 11:08:09 CET 2008


On Thu, 27 Mar 2008, Bio7 wrote:

>
> Dear R developers,
>
> i would like to start R with a *.RData argument under Linux.
> Something like R -f /home/user/workspace.RData
>
> Is this possible?

$ R
...
> load("/home/user/workspace.RData")

or put that line in your .Rprofile -- see ?Startup.

(My guess is that you are used to the facility for drag-and-drop on 
Windows.  Also, please re-read 'An Introduction to R' for the supported 
command-line arguments -- '-f' is supported but this is not what it does.)

>
> Thanks in advance for any answers.
> --
> View this message in context: http://www.nabble.com/Execute-R-with-*.RData-argument-tp16323374p16323374.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list