Hi All, I am trying to run R scripts on a server rather than my own machine. The biggest reason being that the data can be 3GB+; more than my RAM can handle. Anyway is there a way to do this. I am trying to find a SAS alternative. In SAS you can do (keyword) rsubmit; and get things running remotely on a server. Is there something similar on R. Couldn't find a comprehensive answer online. Thanks in advance, Sachin --- Please consider the environment before printing this email --- Allianz - General Insurance Company of the Year 2009+ + Australia and New Zealand Insurance Industry Awards This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is intended solely for the addressee. It is confidential, may contain personal information and may be subject to legal professional privilege. Unauthorised use is strictly prohibited and may be unlawful. If you have received this by mistake, confidentiality and any legal privilege are not waived or lost and we ask that you contact the sender and delete and destroy this and any other copies. In relation to any legal use you may make of the contents of this email, you must ensure that you comply with the Privacy Act (Cth) 1988 and you should note that the contents may be subject to copyright and therefore may not be reproduced, communicated or adapted without the express consent of the owner of the copyright. Allianz will not be liable in connection with any data corruption, interruption, delay, computer virus or unauthorised access or amendment to the contents of this email. If this email is a commercial electronic message and you would prefer not to receive further commercial electronic messages from Allianz, please forward a copy of this email to unsubscribe at allianz.com.au with the word unsubscribe in the subject header.
I don't know anything about SAS - so take the below with a grain of salt. It depends on what operating system you are running. With *nix you can run R like it is on your computer with ssh -X you could maybe send the job with R BATCH over ssh, or... I am sure that there are many other opportunities. Stephen On Thu, Oct 7, 2010 at 7:45 PM, <sachinthaka.abeywardana at allianz.com.au> wrote:> > Hi All, > > I am trying to run R scripts on a server rather than my own machine. The > biggest reason being that the data can be 3GB+; more than my RAM can > handle. Anyway is there a way to do this. > > I am trying to find a SAS alternative. > > In SAS you can do (keyword) rsubmit; and get things running remotely on a > server. Is there something similar on R. Couldn't find a comprehensive > answer online. > > Thanks in advance, > Sachin > > --- Please consider the environment before printing this email --- > > Allianz - General Insurance Company of the Year 2009+ > + Australia and New Zealand Insurance Industry Awards > > This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is intended solely for the addressee. It is confidential, may contain personal information and may be subject to legal professional privilege. Unauthorised use is strictly prohibited and may be unlawful. If you have received this by mistake, confidentiality and any legal privilege are not waived or lost and we ask that you contact the sender and delete and destroy this and any other copies. In relation to any legal use you may make of the contents of this email, you must ensure that you comply with the Privacy Act (Cth) 1988 and you should note that the contents may be subject to copyright and therefore may not be reproduced, communicated or adapted without the express consent of the owner of the copyright. > Allianz will not be liable in connection with any data corruption, interruption, delay, computer virus or unauthorised access or amendment to the contents of this email. If this email is a commercial electronic message and you would prefer not to receive further commercial electronic messages from Allianz, please forward a copy of this email to unsubscribe at allianz.com.au with the word unsubscribe in the subject header. > > ______________________________________________ > 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. >-- Stephen Sefick ____________________________________ | Auburn University? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | Department of Biological Sciences? ? ? ? ?? | | 331 Funchess Hall? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | | Auburn, Alabama? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | 36849? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | |___________________________________| | sas0025 at auburn.edu? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | http://www.auburn.edu/~sas0025? ? ? ? ? ?? | |___________________________________| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods.? We are mammals, and have not exhausted the annoying little problems of being mammals. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -K. Mullis "A big computer, a complex algorithm and a long time does not equal science." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -Robert Gentleman
You may want to check the StatEt plugin for Eclipse. It features remote submit functionality. I haven't tested it, though. On Oct 7, 2010, at 8:45 PM, sachinthaka.abeywardana at allianz.com.au wrote:> > Hi All, > > I am trying to run R scripts on a server rather than my own machine. The > biggest reason being that the data can be 3GB+; more than my RAM can > handle. Anyway is there a way to do this. > > I am trying to find a SAS alternative. > > In SAS you can do (keyword) rsubmit; and get things running remotely on a > server. Is there something similar on R. Couldn't find a comprehensive > answer online. > > Thanks in advance, > Sachin > > --- Please consider the environment before printing this email --- > > Allianz - General Insurance Company of the Year 2009+ > + Australia and New Zealand Insurance Industry Awards > > This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is intended solely for the addressee. It is confidential, may contain personal information and may be subject to legal professional privilege. Unauthorised use is strictly prohibited and may be unlawful. If you have received this by mistake, confidentiality and any legal privilege are not waived or lost and we ask that you contact the sender and delete and destroy this and any other copies. In relation to any legal use you may make of the contents of this email, you must ensure that you comply with the Privacy Act (Cth) 1988 and you should note that the contents may be subject to copyright and therefore may not be reproduced, communicated or adapted without the express consent of the owner of the copyright. > Allianz will not be liable in connection with any data corruption, interruption, delay, computer virus or unauthorised access or amendment to the contents of this email. If this email is a commercial electronic message and you would prefer not to receive further commercial electronic messages from Allianz, please forward a copy of this email to unsubscribe at allianz.com.au with the word unsubscribe in the subject header. > > ______________________________________________ > 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.
Sachin, I apologize if I'm over-simplifying your question. I mostly run R on an Ubuntu server via a Windows laptop. I log in to the remote server via SSH (via PuTTY on Windows), and then open an interactive R session through the usual ways (typing 'R' at the Linux command line). When creating figures, I'll usually just output the figures to pdfs, via pdf(). However, if I need a more interactive experience with the figures, I'll ask PuTTY to initiate 'X11 forwarding', which, on Windows, also requires an X server, such as Xming. This causes plots to appear in new windows just like you were running R on your local machine. If you are interested in running non-interactive batch R scripts, reference the following: http://stat.ethz.ch/R-manual/R-devel/library/utils/html/BATCH.html . Another note on running R over SSH: if you lose your SSH connection, the R process will stop. I get around this by using the 'screen' command in Linux (http://en.wikipedia.org/wiki/GNU_Screen). See man screen for details. While 'screen' does many things, relevant to this thread it creates new remote terminals that persist after SSH disconnects. After SSHing into my server, I type 'screen' and [return], then 'R'. R starts up and I start the analysis. I can manually 'detach' the screen by hitting the 'control' and 'a' keys together, and then hitting the 'd' key. The R process (and any other processes started in that screen session) will continue to run. One can start many screens. Typing 'screen -ls' shows the currently running screens. If only one screen is running, typing 'screen -r' will attach that screen, and one can continue on one's analysis in R. If multiple screen sessions are open, one will need to specify the screen name after the 'screen -r' command. Sometimes after an abrupt disconnect, the screen will remain attached, even though the SSH connection is lost. To get back to the screen session, one must first 'detach' and then 're-attach' the screen by typing 'screen -dr'. Let me know if you have more specific questions. Cheers, Jeremy Jeremy Hetzel Boston University -- View this message in context: http://r.789695.n4.nabble.com/Running-R-on-a-server-tp2967748p2991084.html Sent from the R help mailing list archive at Nabble.com.