Skip to content

Commit 9769e8c

Browse files
committed
fix failing test
1 parent b9f2728 commit 9769e8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/fit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ CmdStanFit$set("public", name = "grad_log_prob", value = grad_log_prob)
457457
#' [unconstrain_variables()], [unconstrain_draws()], [variable_skeleton()],
458458
#' [hessian()]
459459
#'
460-
hessian <- function(unconstrained_variables, jacobian = TRUE, jacobian_adjustment = TRUE) {
460+
hessian <- function(unconstrained_variables, jacobian = TRUE, jacobian_adjustment = NULL) {
461461
if (!is.null(jacobian_adjustment)) {
462462
warning("'jacobian_adjustment' is deprecated. Please use 'jacobian' instead.", call. = FALSE)
463463
jacobian <- jacobian_adjustment

man/fit-method-hessian.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-model-methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ context("model-methods")
33
set_cmdstan_path()
44
mod <- cmdstan_model(testing_stan_file("bernoulli_log_lik"), force_recompile = TRUE)
55
data_list <- testing_data("bernoulli")
6-
fit <- mod$sample(data = data_list, chains = 1)
6+
fit <- mod$sample(data = data_list, chains = 1, refresh = 0)
77

88
test_that("Methods error if not compiled", {
99
skip_if(os_is_wsl())

0 commit comments

Comments
 (0)