ERROR: lazy loading failed for package RcppArmadillo on R 3.5.3
ERROR: lazy loading failed for package RcppArmadillo on R 3.5.3
我在让 Travis-CI 使用 R-oldrel (3.5.3) 在 Ubuntu 16.04 上安装 RcppArmadillo 时遇到一些问题,尽管它适用于 R-release (3.6.1) 和R-开发。我收到以下错误:
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
checking for macOS... checking LAPACK_LIBS... R-supplied partial LAPACK found
configure: WARNING: Some complex-valued LAPACK functions may not be available
** libs
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c RcppArmadillo.cpp -o RcppArmadillo.o
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c fastLm.cpp -o fastLm.o
g++ -std=gnu++11 -shared -L/home/travis/R-bin/lib/R/lib -L/home/travis/R-bin/lib -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -fopenmp -L/home/travis/R-bin/lib/R/lib -lRlapack -L/home/travis/R-bin/lib/R/lib -lRblas -lgfortran -lm -lquadmath -L/home/travis/R-bin/lib/R/lib -lR
installing to /home/travis/R/Library/RcppArmadillo/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
ERROR: lazy loading failed for package ‘RcppArmadillo’
* removing ‘/home/travis/R/Library/RcppArmadillo’
Error in i.p(...) :
(converted from warning) installation of package ‘RcppArmadillo’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
The command "Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .
Your build has been stopped.
这是 link 到完整的错误日志:https://travis-ci.org/jmgirard/circumplex/jobs/574588838
以防我弄乱了 travis 配置,这里是我的 yml 文件:
language: R
sudo: true
cache: packages
before_install:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install -y libudunits2-dev libproj-dev libgeos++-dev libgdal-dev libv8-dev
r_binary_packages:
- dplyr
- rcpp
matrix:
include:
- r: devel
- r: release
after_success:
- Rscript -e 'covr::codecov()'
- r: oldrel
- r: 3.3
这是否只是 R-oldrel 的问题,我需要等待它逐步淘汰,或者我可以通过某种方式更改我的配置来避免错误吗?提前致谢,如果这是一个愚蠢的问题,我深表歉意 and/or 已在其他地方得到回答(我看过但找不到)。
我相信这是您指定的二进制包(dplyr
和 rcpp
)与它是 R 的旧版本这一事实之间的相互作用。基本上,我相信二进制版本不适用于这个较旧的 R。如果您删除 r_binary_packages
,仅针对 r: oldrel
,它应该可以工作。您可以将 r_binary_packages
移至有关 R 版本的每个部分。
...
matrix:
include:
- r: devel
r_binary_packages:
- dplyr
- rcpp
- r: release
r_binary_packages:
- dplyr
- rcpp
after_success:
- Rscript -e 'covr::codecov()'
- r: oldrel
- r: 3.3
我在让 Travis-CI 使用 R-oldrel (3.5.3) 在 Ubuntu 16.04 上安装 RcppArmadillo 时遇到一些问题,尽管它适用于 R-release (3.6.1) 和R-开发。我收到以下错误:
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
checking for macOS... checking LAPACK_LIBS... R-supplied partial LAPACK found
configure: WARNING: Some complex-valued LAPACK functions may not be available
** libs
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c RcppArmadillo.cpp -o RcppArmadillo.o
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/include" -I/home/travis/R-bin/include -I../inst/include -fopenmp -fpic -g -O2 -c fastLm.cpp -o fastLm.o
g++ -std=gnu++11 -shared -L/home/travis/R-bin/lib/R/lib -L/home/travis/R-bin/lib -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -fopenmp -L/home/travis/R-bin/lib/R/lib -lRlapack -L/home/travis/R-bin/lib/R/lib -lRblas -lgfortran -lm -lquadmath -L/home/travis/R-bin/lib/R/lib -lR
installing to /home/travis/R/Library/RcppArmadillo/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
ERROR: lazy loading failed for package ‘RcppArmadillo’
* removing ‘/home/travis/R/Library/RcppArmadillo’
Error in i.p(...) :
(converted from warning) installation of package ‘RcppArmadillo’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
The command "Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .
Your build has been stopped.
这是 link 到完整的错误日志:https://travis-ci.org/jmgirard/circumplex/jobs/574588838
以防我弄乱了 travis 配置,这里是我的 yml 文件:
language: R
sudo: true
cache: packages
before_install:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install -y libudunits2-dev libproj-dev libgeos++-dev libgdal-dev libv8-dev
r_binary_packages:
- dplyr
- rcpp
matrix:
include:
- r: devel
- r: release
after_success:
- Rscript -e 'covr::codecov()'
- r: oldrel
- r: 3.3
这是否只是 R-oldrel 的问题,我需要等待它逐步淘汰,或者我可以通过某种方式更改我的配置来避免错误吗?提前致谢,如果这是一个愚蠢的问题,我深表歉意 and/or 已在其他地方得到回答(我看过但找不到)。
我相信这是您指定的二进制包(dplyr
和 rcpp
)与它是 R 的旧版本这一事实之间的相互作用。基本上,我相信二进制版本不适用于这个较旧的 R。如果您删除 r_binary_packages
,仅针对 r: oldrel
,它应该可以工作。您可以将 r_binary_packages
移至有关 R 版本的每个部分。
...
matrix:
include:
- r: devel
r_binary_packages:
- dplyr
- rcpp
- r: release
r_binary_packages:
- dplyr
- rcpp
after_success:
- Rscript -e 'covr::codecov()'
- r: oldrel
- r: 3.3