1 Rscript
Rscript test.RRscript test.R arg1 arg2Rscript test.R -i infile.txt -o out.png
2 Rscript解释器
vi test.R#!/usr/bin/env Rscript...chmod 755 test.R./test.R ...
3 stdin
R的安装目录拷贝到新环境中时,Rscript可能会无法使用(编译时会有一些绝对路径) 但R是可以使用的
cat test.R | R --slavecat test.R | R --slave --args -i infile.txt -o out.png
—slave
