Alternatively, you can simply prefix all scripts with #! /path/to/R/Rscript ...
where the path is usually /usr/bin/ This info is in the manual that comes packaged with R under, conveniently, the scripting section. I assumed that he was getting some error message. Likely, the script was not created executable, in which case the terminal command chmod +x "myscript.R" will do it. -------------------------------------- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 "Is the room still a room when its empty? Does the room, the thing itself have purpose? Or do we, what's the word... imbue it." - Jubal Early, Firefly From: Thomas Levine <thomas.lev...@gmail.com> To: Jonathan P Daily <jda...@usgs.gov> Cc: gokhanocakoglu <ocako...@uludag.edu.tr>, r-help@r-project.org, r-help-boun...@r-project.org Date: 11/02/2010 02:24 PM Subject: Re: [R] R script on linux? Open a terminal, then run these two commands. cd /home/the/directory/with/your/script R Then run this in R source('yourscript.R') Tom 2010/11/2 Jonathan P Daily <jda...@usgs.gov>: > What is the error message? > -------------------------------------- > Jonathan P. Daily > Technician - USGS Leetown Science Center > 11649 Leetown Road > Kearneysville WV, 25430 > (304) 724-4480 > "Is the room still a room when its empty? Does the room, > the thing itself have purpose? Or do we, what's the word... imbue it." > - Jubal Early, Firefly > > > > From: > gokhanocakoglu <ocako...@uludag.edu.tr> > To: > r-help@r-project.org > Date: > 11/02/2010 09:11 AM > Subject: > Re: [R] R script on linux? > Sent by: > r-help-boun...@r-project.org > > > > > I can't run the script the program doesn't work... > -- > View this message in context: > http://r.789695.n4.nabble.com/R-script-on-linux-tp3023650p3023670.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[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.