Closed Spines151 closed 2 years ago
Hi, today I started experiencing the exact same issue after updating all packages in R (trying to solve a different issue).
I just removed the latest TMB version 1.8.0 (not tbm - I believe you have that wrong) and installed 1.722 and it is working now.
I hope that helps!
Thanks for highlighting the issue @Spines151.
I've noticed it today while trying to run some example code. It looks like there's been a change in the latest version of TMB
that's resulting in some incompatibility issues. I've seen a similar issue come up on the glmmTMB
forum: https://github.com/glmmTMB/glmmTMB/issues/791
A patch for now would be to role back the version of TMB
you are using:
devtools::install_version("TMB", version = "1.7.20", repos = "http://cran.r-project.org")
HTH, James
If you have installed the binary foieGras 0.7-6
from CRAN (ie. on Windows or Mac) then you are getting C++ code compiled against TMB 1.7.20
. If you have TMB
versions 1.8.0 or up installed then you'll get this error. You can:
1) install the CRAN version from source using install.packages("foieGras", type = "source")
2) install from GitHub using remotes::install_github("ianjonsen/foieGras@staging")
Either option will build the package from source & compile the C++ code against whatever version of TMB
you have installed. This will stop the error.
Hi Ian I have been having the same issue : Error in .Call("getParameterOrder", data, parameters, new.env(), NULL, : Incorrect number of arguments (4), expecting 3 for 'getParameterOrder'.
I uninstalled the foiegras package and tried to reinstall from Github (i.e. install from GitHub using remotes::install_github("ianjonsen/foieGras@staging"). There were many packages that also need to be upgraded, so I chose to upgrade all of them. However, the package cli was unable to be upgraded and foiegras was unable to be installed. I then tried install.packages("foieGras", type = "source"). This had installed foieGras_1.0.0.9500.tar.gz’ into a temp file. So I then tried to install from github again.
Unfortunately the package failed to install. Here are the last few lines from the installation:
C:/R/Library/RcppEigen/include/Eigen/src/Core/CoreEvaluators.h:960:8: warning: ignoring attributes on template argument 'Eigen::internal::packet_traits
Warning messages: 1: In i.p(...) : installation of package ‘cli’ had non-zero exit status 2: In i.p(...) : installation of package ‘C:/Users/00041818/AppData/Local/Temp/Rtmp0KyQvN/file282c62935898/foieGras_1.0.0.9500.tar.gz’ had non-zero exit status
Can you please advise what I need to do in order to be able to install foiegras.
Kind regards Belinda
Hi Belinda,
The cli
package isn't a direct requirement for foieGras
but must be for one of foieGras
's dependencies. You probably don't need the latest cli
version so I would try reinstalling from the CRAN package versions, rather than GitHub, using this sequence:
foieGras
with: remove.packages("foieGras")
cli
with install.packages("cli")
- if you get a message asking if you want to install from source, choose "no"foieGras with:
install.packages("foieGras", type = "source")`This should install the CRAN versions of cli
and foieGras
0.7-6. The GitHub version is currently experimental and mostly untested.
Addition to post # 25 Error when running fit_ssm - closed
I get a cryptic error message trying to run fit_SSM
Some googling later, I found people reporting issues with the matrix and TBM versions, so I followed the advice (post #25) to install tbm from the source, but the error remained. Rv 4.1.1 foieGras (0.7.6) matrix (1.4.0) tbm (0.3.5)
Any advice? Thanks