将R函数作为带参数的命令行脚本运行
假设我有以下脚本将R函数作为带参数的命令行脚本运行,r,command-line,R,Command Line,假设我有以下脚本 k <- as.numeric(readline("Start Index: ")) tot <- NULL for (i in 1:k){ tot <- c(tot, i) } write.csv(tot, "test.csv") k您可能会发现命令参数中的信息很有用 根据描述: Provides access to a copy of the command line arguments supplied when this R sessi
k <- as.numeric(readline("Start Index: "))
tot <- NULL
for (i in 1:k){
tot <- c(tot, i)
}
write.csv(tot, "test.csv")
k您可能会发现命令参数中的信息很有用
根据描述:
Provides access to a copy of the command line arguments supplied
when this R session was invoked.
您可能会发现?commandArgs
中的信息很有用
根据描述:
Provides access to a copy of the command line arguments supplied
when this R session was invoked.
一对漂浮着,一对漂浮着,