Re: [R] Execute R with *.RData argument

From: Bio7 <>
Date: Thu, 27 Mar 2008 07:19:35 -0700 (PDT)

$ 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.)

That' s not exactly what i need because i externally execute the R environment in a shell which then should automatically load a given *.RData file.

It would be nice to have an argument for R which avoids the termination of R when
using the R -e argument then i can programmatically open a shell with a given file.

Anyway the .RProfile file could be an option for me.

Thank you for the help!

View this message in context:*.RData-argument-tp16323374p16325202.html
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 27 Mar 2008 - 14:25:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 27 Mar 2008 - 15:30:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive