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

> this appears to disagree with the software-engineering principle of avoiding a mutating global state

I disagree.
In embedded systems engineering, for example, it's customary to use
global variables to represent ports.

Also, I note that the use of global variables, is similar to using pen
and paper, to do mathematics and statistics.
(Which is good).
Whether that's consistent with software engineering principles or not,
I don't know.

However, I partly agree with you.
Given that there's interest from various parties in running R in
various ways, it may be good to document some of the options
available.

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



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