--vanilla --args
etc. The syntax in the R script is:script.R:
#!/usr/bin/env Rscript argv <- commandArgs(trailingOnly=TRUE)
Make it executable:
chmod +x script.RExecute with
./script.R extra arguments go here
I prefer this method much more than others because the R script acts like any other command line tool now.
No comments:
Post a Comment