Skip to content
Prev 24878 / 63424 Next

Embedding R and registering routines

Simon Urbanek wrote:
Not quite. If apache loads mod_perl and mod_R, say, and
"we" make routines in mod_perl available to R, when apache
unloads mod_perl but not mod_R, we have to tell R that
these are no longer available.
If by handle we are talking about the handle to the DLL, then
while, I can see some potential complications in strange cases,
generally it is not an issue.
The registration mechanism precisely avoids sharing the handle
and deals directly with pointers to routines. Indeed, it is getting
away from global variables found by name lookup.
Neither am I; just cautious about making things too simple
at one step which makes the entire thing more complex in subsequent
steps.  I think we have data on that  ... :-)