Skip to content
Prev 22518 / 63421 Next

Getting hold of a package's environment from C code

On Sun, 22 Oct 2006, Seth Falcon wrote:

            
Hmm, it is declared in Rinternals.h, which is the public header for 
manipulating R objects at C level.  As such it is available to packages, 
but as it is not documented in 'Writing R Extensions' it is subject to 
change.

R_FindNamespace is essentially the same code as Duncan M provided, so it 
is a pretty simple function.  (It still contains a test that namespaces 
are supported, and that seems long overdue for removal.)