If GNU make is acceptable as a system requirement, you can get any R configuration/runtime variable in Makevars, e.g.

R_ARCH=$(shell $(R_HOME)/bin/Rscript -e 'cat(.Platform$r_arch)')

-Naras

On 2/9/21 9:45 AM, Duncan Murdoch wrote:
On 09/02/2021 11:01 a.m., Duncan Murdoch wrote:
I think the WRE manual says that an R_ARCH environment variable will be
set when subarchitectures are involved, but environment variables aren't
accessible in Makevars.

Actually, I probably misread the section about environment variables.

Duncan

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

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

Reply via email to