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

2010-02-18 Thread Vojtěch Zeisek
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

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

2010-02-18 Thread Sarah Goslee
At the very simplest level, you can open the R script in a text editor. Then start R at the command line in the terminal by typing R and then copy and paste the desired lines from the text file into the terminal. There are plenty of more elegant and complex solutions, but that one is easy and will

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

2010-02-18 Thread xinwei
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