Skip to content
Prev 140501 / 398503 Next

Execute R with *.RData argument

Not sure if this is sufficient but if you always open your RData
file in the same directory this may be good enough:

mkdir ~/tmp
cd ~/tmp
R
x <- 33
q() # answer y to save in .RData

Now whenever you open R in ~/tmp it will load .RData containing x.
You must be in ~/tmp and the file must be called .RData .  If you subsequently
quit again in a subsequent session press y to update .RData for the subsequent
session or n if you want to keep the first .RData.

On Thu, Mar 27, 2008 at 5:02 AM, Bio7
<marcel.austenfeld at uni-bielefeld.de> wrote: