Comments (5)
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!
from animotum.
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: glmmTMB/glmmTMB#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
from animotum.
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:
-
install the CRAN version from source using
install.packages("foieGras", type = "source")
-
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.
from animotum.
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::type' {aka '__vector(2) double'} [-Wignored-attributes]
(cd TMB; //uniwa.uwa.edu.au/userhome/staff8/00041818/My Documents/R/R-4.0.5/bin/i386/Rscript --no-save --no-restore compile.R)
sh: //uniwa.uwa.edu.au/userhome/staff8/00041818/My: No such file or directory
make: *** [Makevars.win:9: tmblib] Error 127
ERROR: compilation failed for package 'foieGras'
- removing 'C:/R/Library/foieGras'
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
from animotum.
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:
- uninstall
foieGras
with:remove.packages("foieGras")
- close R/RStudio and then reopen
- install
cli
withinstall.packages("cli")
- if you get a message asking if you want to install from source, choose "no" - install
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.
from animotum.
Related Issues (20)
- map fit_ssm HOT 1
- when none of the input locations from any of the tracks are on land, route_path fails HOT 1
- installation and library(aniMotum) on M2 MBP HOT 4
- Package `foieGras` archived on CRAN and will be removed from the Tracking CTV HOT 1
- error with map function HOT 1
- When running function fit_ssm : Error in MakeADFun. Is someone familiar? HOT 2
- errors when running fit_ssm in animotum HOT 8
- Issue in installing foieGras package in RStudio HOT 3
- Error in if (p.GL > 0.75) { : missing value where TRUE/FALSE needed HOT 5
- not sure if bug or system issue HOT 3
- Error with sim_fit() using different gradient raster HOT 9
- rep$pdHess : $ operator is invalid for atomic vector — Error when fitting ssm HOT 9
- Error in strsplit(names(map), "_") : non-character argument HOT 1
- osar function not finishing the run HOT 2
- Date/time variable not detected in data HOT 6
- Missing packages for Mac M1 binary? HOT 3
- Issue with grad object for sim_fit() HOT 1
- manual download binary version animotum HOT 1
- Error when fitting an example fit_ssm: Error in updateCholesky(L, hessian.random) HOT 3
- Issue when running the Unsupervised Segmentation when fitting the NP Bayesian Models. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animotum.