One - One Code All

Blog Content

R语言使用命令行参数运行R脚本程序

R语言   2010-04-11 23:19:32

终端上:

Rscript args_test.R  AAA BBB


R软件工作区:

setwd(“D:/workspace/R”) #括号中是脚本文件的路径 

source(“test.R”) 



上一篇:ubuntu下安装和更新R语言
下一篇:R语言记录程序运行时间

The minute you think of giving up, think of the reason why you held on so long.