[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.
| CXX_STD = CXX11
| 
| PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
| $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
| PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include

Awesome.

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...

Dirk

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