关于r:在没有脚本名称的情况下调用Rscript

invoke Rscript without a script name

我想在没有适当脚本的情况下调用Rscript,只需在控制台中编写它即可。 可能吗? 就像是

1
c:/path/to/R/bin/Rscript.exe"here is a R code, not a R file"

我在Windows上。


使用-e参数运行Rscript:

1
Rscript -e"getwd()"