From @purd|e@@ @end|ng |rom gm@||@com  Wed Aug 28 00:29:25 2019
From: @purd|e@@ @end|ng |rom gm@||@com (Abby Spurdle)
Date: Wed, 28 Aug 2019 10:29:25 +1200
Subject: [Rd] Conventions: Use of globals and main functions
In-Reply-To: <CAB8pepy-b3v+fdTrT6=ZpkXCXPhV14_Oi5=h1AaOB_A=-F7E+A@mail.gmail.com>
References: <1118624909.2128031.1566706119596.ref@mail.yahoo.com>
 <1118624909.2128031.1566706119596@mail.yahoo.com>
 <CAB8pepy-b3v+fdTrT6=ZpkXCXPhV14_Oi5=h1AaOB_A=-F7E+A@mail.gmail.com>
Message-ID: <CAB8pepwuWoKA-m+EGgXh5hxjxpD2G0LdEgJ=kYxjs2sN2LVgsg@mail.gmail.com>

> "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



[Rd] Conventions: Use of globals and main functions
Abby Spurdle