[R] how to execute R script piece by piece on SSH terminal

Vojtěch Zeisek Vojtech.Zeisek at opensuse.org
Thu Feb 18 22:03:40 CET 2010


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 xinwei na 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 na 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/
------------- dal�� ��st ---------------
A non-text attachment was scrubbed...
Name: [��dn� popis nen� k dispozici]
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100218/d44618e7/attachment.bin>


More information about the R-help mailing list