Hello, if You run R in terminal, You can type R to start the R software, then use command source("/path/to/your/script") to load the script and then You call functions from the script as usual. Optionally, You can move to the directory with script with command setwd("/path/to/the/directory"). Or, I would recommend to install Rkward (http://rkward.sourceforge.net/), what is excellent graphical user interface for R. Best regards, Vojtěch Zeisek
Dne Čt 18. února 2010 21:36:34 xin...@stat.psu.edu napsal(a): > hi, I am new to Linux and R environment. I have a existing R script. I > wonder how to open my R script on Linux platform and execute selected > written R command? > > thanks > > Xin > > ______________________________________________ > 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. -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu / Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://web.natur.cuni.cz/~zeisek/
signature.asc
Description: This is a digitally signed message part.
______________________________________________ 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.