Here is the GitHub repo of my R package
I've been able to install this package from source on Windows, MacOS, and a Linux cluster with devtools::install_github("ntthung/ldsr")
I'm trying to integrate Travis CI and upon build, I get the following error
Error: package or namespace load failed for ‘ldsr’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/tmp/RtmpK7z3X6/Rinst2ef05609c709/00LOCK-ldsr/00new/ldsr/libs/ldsr.so':/tmp/RtmpK7z3X6/Rinst2ef05609c709/00LOCK-ldsr/00new/ldsr/libs/ldsr.so: undefined symbol: dpotrf_
I found that dpotrf_
belongs to a library called libflame
. So I made the file Rload.R
with te command Sys.setenv("PKG-LIBS"="-llibflame")
and added the following to .travis.yml
script:
- Rscript Rload.R
- R CMD build . --compact-vignettes=gs+qpdf
- R CMD check *tar.gz --as-cran
But I still get the same error.
My package uses Rcpp and RcppArmadillo.
Help please! Thanks.