[R-pkg-devel] Fwd: Subarchitectures

Sokol Serguei @ergue|@@oko| @end|ng |rom gm@||@com
Tue Feb 9 17:30:47 CET 2021


Le 09/02/2021 à 17:01, Duncan Murdoch a écrit :
> 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.
>
> Is there a standard way to get a value in Makevars which will match 
> .Platform$r_arch once R is running?

If sub-shell is possible, will it be convenient?

   myvar=`R --slave --vanilla -e 'cat(.Platform$r_arch)'`

Best,
Serguei.

>
> Duncan Murdoch
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list