Skip to content

Commit

Permalink
standardize() fails in some cases
Browse files Browse the repository at this point in the history
Fixes #441
  • Loading branch information
strengejacke committed Jul 1, 2023
1 parent 3ff2209 commit aafd8e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/standardize.models.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ standardize.default <- function(x,
weights = weights,
verbose = verbose,
include_response = include_response,
update_expr = stats::update(x, data = data_std),
update_expr = str2lang("stats::update(x, data = data_std)"),
...
)
}
Expand Down Expand Up @@ -264,10 +264,10 @@ standardize.default <- function(x,
on.exit(.update_failed())

if (isTRUE(verbose)) {
model_std <- eval(substitute(update_expr))
model_std <- eval(update_expr)
} else {
utils::capture.output({
model_std <- eval(substitute(update_expr))
model_std <- eval(update_expr)
})
}

Expand Down

0 comments on commit aafd8e9

Please sign in to comment.