Re: [R] save workspace while running R on a cluster
Thanks your suggestion works -:-) From: milton ruser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 2:42 PM To: Manisha Brahmachary Cc: r-help@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 [EMAIL PROTECTED] 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@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@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.
[R] save workspace while running R on a cluster
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@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.
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 [EMAIL PROTECTED] 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@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@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.