Hi Dirk

Thanks for the quick response.

I thought  -DR_NO_REMAP in Makevars would set R_NO_REMAP across all compilation 
units. Is this not the case ?

Thanks,

Dan
________________________________
From: Dirk Eddelbuettel <e...@debian.org>
Sent: 07 August 2023 14:13
To: Grose, Daniel <dan.gr...@lancaster.ac.uk>
Cc: r-package-devel@r-project.org <r-package-devel@r-project.org>
Subject: [External] Re: [R-pkg-devel] clang issue

This email originated outside the University. Check before clicking links or 
attachments.

Daniel,

This is not new, and not related to clang.

On 7 August 2023 at 12:58, Grose, Daniel wrote:
| Any ideas ?

Add a line

   #define R_NO_REMAP 1

before _any_ inclusion of R headers. See Section 6 of Writing R Extensions.

If you use eg Rcpp it is done for you when you include Rcpp headers.

Cheers, Dirk

--
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to