hadley / r-internals

Documentation for R's internal C API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README.md - Order of define and include

olivier7121 opened this issue · comments

Thank you very much for this readme, it helped me a lot.

I just want to mention one issue that I experienced right at the outset.

The following piece of code:

#define R_NO_REMAP
#include <R.h>
#include <Rinternals.h>

produces by me an error.

I found out that putting the define AFTER the first 2 include does work:

#include <R.h>
#include <Rinternals.h>
#define R_NO_REMAP

I'm aware this contradicts what is indicated also in the relevant R Manuals chapter but that's my experience...

My configuration:

platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          3.1                              
year           2023                             
month          06                               
day            16                               
svn rev        84548                            
language       R                                
version.string R version 4.3.1 (2023-06-16 ucrt)
nickname       Beagle Scouts