Re: [R] save workspace while running R on a cluster

From: Manisha Brahmachary <mb3058_at_c2b2.columbia.edu>
Date: Mon, 16 Jun 2008 11:17:57 -0400

Thanks your suggestion works -:-)  


From: milton ruser [mailto:milton.ruser_at_gmail.com] Sent: Thursday, June 12, 2008 2:42 PM
To: Manisha Brahmachary
Cc: r-help_at_r-project.org
Subject: Re: [R] save workspace while running R on a cluster

Hi Manisha,

How about you incluse something like this on your script.R:

setwd("/your/full/working/directory") # ?setwd

save.image() # or save.image("your_workspace.RDA").

By the way, I donīt know if you added the line below to run in background:

R --save < calculate.R >& script.out

May be the rigth thing is

R --save < calculate.R > script.out &

Good luck.

miltinho

Brazil

On 6/12/08, Manisha Brahmachary <mb3058_at_c2b2.columbia.edu> wrote:

Hello,

I have a question about running R in a cluster environment. The shell script I am running looks like this:

#!/bin/bash

cd /nfs/apollo/2/c2b2/users/mb0001/Data

/nfs/apollo/1/shares/software/core_facility/local/x86_64_rocks/R/current/bin/ R --save < calculate.R >& script.out

I have used the "-save" command to save the R workspace (If, I understand it correctly) . However, I am unable to find the workspace file.

Using find .RData did not help.

I would be obliged if someone can help me figure out where the workspace file gets saved?

Thanks

manisha

       [[alternative HTML version deleted]]



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.

        [[alternative HTML version deleted]]



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. Received on Mon 16 Jun 2008 - 19:44:32 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 Mon 16 Jun 2008 - 20:32:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive