jaryan / mmap

R interface to POSIX mmap and Window's MapViewOfFile.
GNU General Public License v3.0
14 stars 2 forks source link

Updates for new C API compliance with R-devel #8

Open jaryan opened 1 month ago

jaryan commented 1 month ago

Issues on R-devel:

https://cran.r-project.org/web/checks/check_results_mmap.html

https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Moving-into-C-API-compliance https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Creating-environments

jaryan commented 1 month ago

https://github.com/jaryan/mmap/blob/babcb3160308ac1a2f33fb26a2ed4f46e31ccdec/src/mmap.c#L215-L220

Likely replace with

SEXP env = R_NewEnv(parent, FALSE, 0);