Skip to content
Prev 6579 / 12125 Next

[R-pkg-devel] Subarchitectures

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.

Dirk