当前位置:网站首页>Matrix and TMB package version issues in R

Matrix and TMB package version issues in R

2022-07-05 07:15:00 RS&Hydrology

stay Rstudio Often encountered in Matrix and TMB Problem with package version :
 Insert picture description here
Or other similar problems :

Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version xx.xx.xx
Current Matrix version is yy.yy.yy
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

resolvent :
You can directly follow the prompts :install.packages("TMB", type = "source"), A box will pop up , choice ’NO’;
 Insert picture description here

 Insert picture description here
If the above method cannot solve the problem , You can use the following method :
(1) install Matrix package :install.packages("Matrix")
(2) restart R, install TMB:devtools::install_github("kaskr/adcomp/TMB", dependencies=TRUE, force=TRUE)
(3) restart R, install GitHub Package required in :install_github("cavios/tshydro/tsHydro")

Reference material :https://github.com/timjmiller/wham/issues/33

原网站

版权声明
本文为[RS&Hydrology]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140559171744.html