[Rd] Conventions: Use of globals and main functions
Abby Spurdle
@purd|e@@ @end|ng |rom gm@||@com
Wed Aug 28 00:29:25 CEST 2019
> "Running R" (in "R Installation and Administration") links to
> "Appendix B Invoking R" (in "An Introduction to R").
> However, these sections do not cover the topics in this thread.
Sorry, I made a mistake.
It is in the documentation (B.4 Scripting with R)
e.g.
(excerpts only)
R CMD BATCH "--args arg1 arg2" foo.R &
args <- commandArgs(TRUE)
Rscript foo.R arg1 arg2
More information about the R-devel
mailing list