Hi all --- After reading the docs, I realize I'm still awfully confused about one point:
"r-script is used when you want to call an R function with 2 arguments: the first is the full path to the file, and the second is an R environment."
I see the brew example, where in a <Directory> directive the filename under the directory is passed as the first arg to brew::brew.
But the second arg to brew::brew is not an environment, rather it's another file descriptor (stdout() is the default).
How is this second "R environment" argument passed or specified?
I cannot seem to find an example illustrating its use.
FWIW --- I fully understand the RFileEval case of evaluating the file contents in an anonymous environment, then executing the specified function in that environment.
I just don't understand the details of environment management when using r-script as the handler.
Is it simply that the function specified (e.g. brew::brew) is evaluated in an environment specific to the full URL under that <Directory>?
Any help understanding environments w.r.t r-script is would be greatly appreciated :-)
Cheers,
-Murat