Re: [R-pkg-devel] Subarchitectures

2021-02-13 Thread Duncan Murdoch
On 12/02/2021 3:51 p.m., Dirk Eddelbuettel wrote: On 11 February 2021 at 11:30, Balasubramanian Narasimhan wrote: | 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

Re: [R-pkg-devel] Subarchitectures

2021-02-12 Thread Dirk Eddelbuettel
On 11 February 2021 at 11:30, Balasubramanian Narasimhan wrote: | 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)') You can switch to backticks to not depe

Re: [R-pkg-devel] Subarchitectures

2021-02-11 Thread Duncan Murdoch
On 11/02/2021 2:30 p.m., Balasubramanian Narasimhan wrote: 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)') I wanted to avoid it, since WRE discourages it so s

Re: [R-pkg-devel] Subarchitectures

2021-02-11 Thread Balasubramanian Narasimhan
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 W

Re: [R-pkg-devel] Subarchitectures

2021-02-09 Thread Duncan Murdoch
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