[英]Issues installing glmmTMB
I am trying to use package glmmTMB.我正在尝试使用 package glmmTMB。 When I call it library(glmmTMB) this is the error message:
当我称它为 library(glmmTMB) 时,这是错误消息:
">library(glmmTMB) Error: package or namespace load failed for 'glmmTMB' in inDL(x, as.logical(local), as.logical(now), ...): function 'Rcpp_precious_remove' not provided by package 'Rcpp' In addition: Warning messages: 1: package 'glmmTMB' was built under R version 4.0.5 2: In checkMatrixPackageVersion(): Package version inconsistency detected. TMB was built with Matrix version 1.3.4 Current Matrix version is 1.2.18 Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package
">library(glmmTMB) Error: package or namespace load failed for 'glmmTMB' in inDL(x, as.logical(local), as.logical(now), ...): function 'Rcpp_precious_remove' not provided by package ' Rcpp' In addition: Warning messages: 1: package 'glmmTMB' was built under R version 4.0.5 2: In checkMatrixPackageVersion(): Package version inconsistency detected. TMB was built with Matrix version 1.3.4 Current Matrix version is 1.2.18请使用 install.packages('TMB', type = 'source') 从源代码重新安装“TMB”或向 CRAN 索要与 CRAN 的“矩阵”package 匹配的“TMB”二进制版本
I have tried using install.packages('TMB', type = 'source') with no luck.我试过使用 install.packages('TMB', type = 'source') 没有运气。 Any ideas?
有任何想法吗?
It's a FAQ -- search for 'Rcpp_precious_remove' not provided by package 'Rcpp'
.这是一个常见问题 - 搜索
'Rcpp_precious_remove' not provided by package 'Rcpp'
。
In short you are mixing a NEWER compilatio nof something that was built with Rcpp 1.0.7 present with an older installed version which lacks the symbol.简而言之,您将使用 Rcpp 1.0.7 构建的新版本与缺少该符号的旧安装版本混合在一起。
Fix: install.packages("Rcpp")
to get the newer Rcpp
.修复:
install.packages("Rcpp")
以获取更新的Rcpp
。 And I generally recommend regular update.packages()
runs to avoid these issues.我通常建议定期运行
update.packages()
以避免这些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.