Skip to content

Commit

Permalink
Allow for only upper or lower limits #394
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Jan 24, 2025
1 parent b448278 commit 685e623
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: sdmTMB
Title: Spatial and Spatiotemporal SPDE-Based GLMMs with 'TMB'
Version: 0.6.0.9021
Version: 0.6.0.9022
Authors@R: c(
person(c("Sean", "C."), "Anderson", , "[email protected]",
role = c("aut", "cre"),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# sdmTMB (development version)

* Allow for specifying only lower or upper limits. #394

* Add vignette on multispecies models with sdmTMB (or any case where one wants
additional spatial and or spatiotemporal fields by some group).

Expand Down
2 changes: 2 additions & 0 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,8 @@ set_limits <- function(tmb_obj, lower, upper, loc = NULL, silent = TRUE) {
if (!silent) message("Setting lower limit for ", i_name, " to ",
lower[[i_name]], ".")
}
}
for (i_name in names(upper)) {
if (i_name %in% names(.upper)) {
.upper[names(.upper) %in% i_name] <- upper[[i_name]]
if (!silent) message("Setting upper limit for ", i_name, " to ",
Expand Down
1 change: 1 addition & 0 deletions sdmTMB.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 1e54a969-ff39-402d-83f4-c260f1f06bda

RestoreWorkspace: No
SaveWorkspace: No
Expand Down

0 comments on commit 685e623

Please sign in to comment.