[R-pkg-devel] Problems with devtools::build() in R

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Tue May 16 19:11:33 CEST 2023


On 16 May 2023 at 18:32, Serguei Sokol wrote:
| Try to add in <your_package_dir>/src/Makevars:
| 
| PKG_LIBS=$(FLIBS)

Good catch. For every RcppArmadillo package we recommend (and inject if you
use the RcppArmadillo.package.skeleton() helper) (and omit the earlier
comment lines)

  PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
  PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Source file (with addded comments) is at
https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars
or in your friendly neighborhood RcppArmadillo installation as
system.file("skeleton", "Makevars", package="RcppArmadillo")

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list