Skip to content

Commit 685e623

Browse files
committed
Allow for only upper or lower limits #394
1 parent b448278 commit 685e623

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: sdmTMB
33
Title: Spatial and Spatiotemporal SPDE-Based GLMMs with 'TMB'
4-
Version: 0.6.0.9021
4+
Version: 0.6.0.9022
55
Authors@R: c(
66
person(c("Sean", "C."), "Anderson", , "[email protected]",
77
role = c("aut", "cre"),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# sdmTMB (development version)
22

3+
* Allow for specifying only lower or upper limits. #394
4+
35
* Add vignette on multispecies models with sdmTMB (or any case where one wants
46
additional spatial and or spatiotemporal fields by some group).
57

R/fit.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,8 @@ set_limits <- function(tmb_obj, lower, upper, loc = NULL, silent = TRUE) {
15561556
if (!silent) message("Setting lower limit for ", i_name, " to ",
15571557
lower[[i_name]], ".")
15581558
}
1559+
}
1560+
for (i_name in names(upper)) {
15591561
if (i_name %in% names(.upper)) {
15601562
.upper[names(.upper) %in% i_name] <- upper[[i_name]]
15611563
if (!silent) message("Setting upper limit for ", i_name, " to ",

sdmTMB.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 1e54a969-ff39-402d-83f4-c260f1f06bda
23

34
RestoreWorkspace: No
45
SaveWorkspace: No

0 commit comments

Comments
 (0)