From martin.becker at mx.uni-saarland.de  Thu Oct  1 17:33:45 2009
From: martin.becker at mx.uni-saarland.de (Martin Becker)
Date: Thu, 01 Oct 2009 17:33:45 +0200
Subject: [Rd] creating environments in package's C code
Message-ID: <4AC4CBD9.7010309@mx.uni-saarland.de>

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

Best wishes,

  Martin

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



[Rd] creating environments in package's C code
Martin Becker