[R-sig-Debian] Installing package fails at "testing if installed package can be loaded from temporary location"

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Oct 8 22:57:21 CEST 2020

On 8 October 2020 at 16:43, Sam H wrote:
| Dirk, thank you a thousand times.
| Indeed, src/Makevars was wrong. I modified Makevars so that now looks like
| the below and the package now compiled and linked properly.
| $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")


I should think of a really clever way to catch that before it happens.
Trouble here is that R doesn't 'read' the src/Makevars and simply lets make
and g++ (or clang++) take care of things so the failure is silent.

Yet extremely frustrating and tricky to debug.  If anybody has clever pointers...


PS The CXX_STD=CXX11 is mostly historic. R itself imposes that now ... as
will RcppArmadillo from the next release.

https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org

More information about the R-SIG-Debian mailing list