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_arch)')

You can switch to backticks to not depend on bash so this

    R_ARCH=`"${R_HOME}/bin/Rscript" -e 'cat(.Platform$r_arch)'`

should work too.

It didn't work for me, but I gave up on that approach pretty quickly so I might have made some other error that caused the failure.

Duncan Murdoch

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

Reply via email to