Skip to content

Commit 87aad07

Browse files
committed
Remove NaN warning solution [skip ci]
1 parent a7f8429 commit 87aad07

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,6 @@ sdmTMB is an R package that fits spatial and spatiotemporal GLMMs (Generalized L
1616

1717
Anderson, S.C., E.J. Ward, P.A. English, L.A.K. Barnett. 2022. sdmTMB: an R package for fast, flexible, and user-friendly generalized linear mixed effects models with spatial and spatiotemporal random fields. bioRxiv 2022.03.24.485545; doi: https://doi.org/10.1101/2022.03.24.485545
1818

19-
## Temporary `NA/NaN gradient` issue as of January 2023
20-
21-
If you are receiving the error:
22-
23-
```
24-
Error in stats::nlminb(start = tmb_obj$par, objective = tmb_obj$fn, gradient = tmb_obj$gr, :
25-
NA/NaN gradient evaluation
26-
```
27-
28-
on all model fits with random effects, it is likely due to [this](https://github.com/pbs-assess/sdmTMB/issues/287) issue affecting all TMB-based packages on CRAN. We will submit an update to trigger a rebuilding of the package. In the meantime, assuming you have a C++ compilter installed (e.g., command-line tools on a Mac, Rtools on Windows), the solution is to install from source to ensure TMB and sdmTMB are built with the latest Matrix package.
29-
30-
```r
31-
install.packages("Matrix")
32-
install.packages("TMB", type = "source")
33-
install.packages("sdmTMB", type = "source")
34-
```
35-
3619
## Table of contents
3720

3821
- [Installation](#installation)

0 commit comments

Comments
 (0)