Re: [R] Starting R from .RData in linux

From: Marianne Promberger <>
Date: Tue, 20 May 2008 12:09:19 +0100

On 05/20/08 10:42, Agustin Lobo wrote:
> Marianne, I do the equivalent
> gnome-terminal -e R
> or
> xterm -e R
> and R starts on the home directory and indicating:
> ARGUMENT '/media/mifat32/Rexercises/.RData' __ignored__

Oops, turns out I get the same message, I just overlooked it.

However, for me R starts in the appropriate directory and does load the objects in .RData in that directory, something I took as "success" given that normally I don't use this
(I have "alias R='R --no-restore-data --no-save'" in my ~/.bashrc).

So it seems R automatically loads the .RData in the given directory from wich you start it, and in your case you need to (a) get R to start from the dir that your .RDatat file is in (something Thunar does for me), then (b) if you plan to have more than one .RData file in any given dir, pass that as an arg to R. I guess (a) is a Nautilus question, (b) seems like might be unlikely/ impractical (better separate projects into separate dirs); and I don't know the answer to either (a) nor (b).


p.s.for (a) you could also check whether gnome-terminal has an option to explicitly tell it a directory.

> Are you sure you do not add any other parameter?

No, I don't but oops.

I g

> I've tried
> xterm -e R --restore
> gnome-terminal -e R --restore
> same result.
> On 05/19/08 09:06, Agustin Lobo wrote:
>> Hi!
>> Is it possible to start R by clicking
>> the .RData file in linux as in Windows?
>> I've tried with ubuntu hardy using
>> the right button and selecting R, but does
>> not work. Is there any way to set it up?
> Marianne Promberger Wrote:
>> You presumably need to associate the file type .RData with starting a
>> terminal and then executing R in that terminal.
>> I'm using Xubuntu, so my file manager is Thunar, and if I right click
>> on an .RData and select "use other application" then "custom command",
>> then put in xfterm4 -e R
>> this works.
>> On Ubuntu, your terminal is probably something else and may have
>> different syntax. (gnome-terminal maybe? then man gnome-terminal in
>> case the -e option doesn't work for you).
>> m.
>> --
>> Marianne Promberger
>> Graduate student in Psychology
> --
> Dr. Agustin Lobo
> Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
> LLuis Sole Sabaris s/n
> 08028 Barcelona
> Spain
> Tel. 34 934095410
> Fax. 34 934110012
> email:

Marianne Promberger
Graduate student in Psychology

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 20 May 2008 - 11:21:37 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 Tue 20 May 2008 - 12:30:39 GMT.

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

list of date sections of archive