Message-ID: <2be729ed-2eb3-0138-ed08-4f39781cda14@gmail.com>
Date: 2021-02-13T09:58:28Z
From: Duncan Murdoch
Subject: [R-pkg-devel] Subarchitectures
In-Reply-To: <24614.59999.899685.800630@rob.eddelbuettel.com>
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