Re: [Rd] R_ext/Altrep.h should be more C++-friendly

2018-10-10 Thread Tierney, Luke
Thanks for the suggestion. Committed in R_devel. Best, luke On Mon, 8 Oct 2018, Michael Sannella wrote: > I am not able to #include "R_ext/Altrep.h" from a C++ file.  I think > it needs two changes: > > 1. add the same __cplusplus check as most of the other header files: >     #ifdef  __cplusp

Re: [Rd] R_ext/Altrep.h should be more C++-friendly

2018-10-10 Thread Romain Francois
Thank you, I updated my example package so that it works with both. https://github.com/romainfrancois/altrepisode/blob/96af0548a9ecc08701d119ea427e16940a82882b/src/altrepisode.h We

[Rd] unlockEnvironment()?

2018-10-10 Thread William Dunlap via R-devel
R lets one lock an environment with both an R function, base::lockEnvironment, and a C function, R_LockEnvironment, but, as far as I can tell, no corresponding function to unlock an environment. Is this omission on principle or just something that has not been done yet? I ask because several pack

Re: [Rd] unlockEnvironment()?

2018-10-10 Thread Tierney, Luke
On Wed, 10 Oct 2018, William Dunlap via R-devel wrote: > R lets one lock an environment with both an R function, > base::lockEnvironment, and a C function, R_LockEnvironment, but, as far as > I can tell, no corresponding function to unlock an environment. Is this > omission on principle or just s