Displaying 1 result from an estimated 1 matches for "testr_globalenv".
2003 May 28
0
R_GlobalEnv
...ic
prototype) can call R functions by looking up workingEnvironment with
findVar. Earlier, I tried a static global SEXP variable in C to
keep track of the environment, but that's not reliable because
of garbage collection. Maybe SEXPREC would work better? ]
Thanks in advance,
James
***** testR_GlobalEnv.c *****
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Memory.h>
#include <R_ext/Applic.h>
static SEXP assignValueToFooInRhoEnv(SEXP Value,SEXP Rho)
{
defineVar(install("Foo"),Value,Rho);
return Value;
}
static SE...