From 87aad07cf2f77a2598e11a5b46171db72e5f3ae7 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 17 Jan 2024 17:17:58 -0800 Subject: [PATCH] Remove NaN warning solution [skip ci] --- README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/README.md b/README.md index 0503ab326..9f9b0245c 100644 --- a/README.md +++ b/README.md @@ -16,23 +16,6 @@ sdmTMB is an R package that fits spatial and spatiotemporal GLMMs (Generalized L 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 -## Temporary `NA/NaN gradient` issue as of January 2023 - -If you are receiving the error: - -``` -Error in stats::nlminb(start = tmb_obj$par, objective = tmb_obj$fn, gradient = tmb_obj$gr, : - NA/NaN gradient evaluation -``` - -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. - -```r -install.packages("Matrix") -install.packages("TMB", type = "source") -install.packages("sdmTMB", type = "source") -``` - ## Table of contents - [Installation](#installation)