Skip to content

Commit 3df3729

Browse files
committed
Fix bug from last commit with EDF printing
1 parent 34015b5 commit 3df3729

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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.9019
4+
Version: 0.6.0.9020
55
Authors@R: c(
66
person(c("Sean", "C."), "Anderson", , "sean@seananderson.ca",
77
role = c("aut", "cre"),

R/print.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ print_smooth_effects <- function(x, m = 1, edf = NULL, silent = FALSE) {
139139

140140
if (!is.null(edf)) {
141141
if (is_delta(x)) {
142-
lp_regex <- paste0("^", m, "LP-")
142+
lp_regex <- paste0("^", m, "LP-s\\(")
143143
edf <- edf[grepl(lp_regex, names(edf))]
144+
} else {
145+
edf <- edf[grepl("^s\\(", names(edf))]
144146
}
145147
edf <- round(edf, 2)
146148
re_sm_mat <- cbind(re_sm_mat, matrix(edf, ncol = 1))

0 commit comments

Comments
 (0)