Re: [Rd] Feature request: put NewEnvironment and R_NewhashedEnv into API

From: Seth Falcon <>
Date: Wed 15 Nov 2006 - 15:32:54 GMT

Prof Brian Ripley <> writes:
> NewEnvironment is currently exposed as Rf_NewEnvironment.
> R_NewHashedEnv is currrently hidden, but I'll unhide it. It does not
> need a further prefix.

Thank you. Could someone provide a bit more detail on how to determine if a given function in R's C code is exposed and/or public or not?

Here's my current understanding after taking a look at Brian's patch r39907:

A function can be hidden or not, but this is independent of whether the function is "sanctioned" as part of R's package API. Functions that are not hidden can be used from package C code, but that doesn't answer whether they _should_ be used.

To determine if a function is public, look at the headers in R/src/include and refer to the README. Thus, NewEnvironment and R_NewHashedEnv, are both private since they are declared in Defn.h. At present, one could call these function in package code, since they are not hidden.

+ seth mailing list Received on Thu Nov 16 14:33:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 16 Nov 2006 - 12:30:39 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.