[Rd] creating environments in package's C code

Martin Becker martin.becker at mx.uni-saarland.de
Thu Oct 1 17:33:45 CEST 2009

Dear developers,

is it possible to create environments in C code of packages?
Simply using
  SEXP env;
  PROTECT (env  = allocSExp(ENVSXP));
and assigning the enclosing environment with SET_ENCLOS seems to be 

Best wishes,


Dr. Martin Becker
Statistics and Econometrics
Saarland University
Campus C3 1, Room 206
66123 Saarbruecken

More information about the R-devel mailing list