数据-R语言-图表-决策-Linux-Python

R语言接收命令行参数

2015-04-15  本文已影响1759人  gada

R语言接收命令行参数

Args <- commandArgs()
print(Args)

调用结果如下:

 $ Rscript correctReads.R 1 2 3
[1] "/Library/Frameworks/R.framework/Resources/bin/exec/R"
[2] "--slave"
[3] "--no-restore"
[4] "--file=correctReads.R"
[5] "--args"
[6] "1"
[7] "2"
[8] "3"
上一篇下一篇

猜你喜欢

热点阅读