cc_staff
653
edits
Line 161: | Line 161: | ||
|lang="R" | |lang="R" | ||
|contents= | |contents= | ||
args = commandArgs(trailingOnly=TRUE) | args = commandArgs(trailingOnly=TRUE) | ||
Line 169: | Line 168: | ||
} | } | ||
name <- args[1] # read first argument as string | name <- args[1] # read first argument as string | ||
number <- as.integer( args[2] ) # read second argument as integer | number <- as.integer( args[2] ) # read second argument as integer | ||
print(paste("Processing with name:'", name, "' and number:'", number,"'", sep = '')) | print(paste("Processing with name:'", name, "' and number:'", number,"'", sep = '')) | ||
}} | }} | ||
This script can be used like this: | This script can be used like this: | ||
{{Command | {{Command |