Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Dec 13, 2023
1 parent b9f2728 commit 9769e8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ CmdStanFit$set("public", name = "grad_log_prob", value = grad_log_prob)
#' [unconstrain_variables()], [unconstrain_draws()], [variable_skeleton()],
#' [hessian()]
#'
hessian <- function(unconstrained_variables, jacobian = TRUE, jacobian_adjustment = TRUE) {
hessian <- function(unconstrained_variables, jacobian = TRUE, jacobian_adjustment = NULL) {
if (!is.null(jacobian_adjustment)) {
warning("'jacobian_adjustment' is deprecated. Please use 'jacobian' instead.", call. = FALSE)
jacobian <- jacobian_adjustment
Expand Down
2 changes: 1 addition & 1 deletion man/fit-method-hessian.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-model-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ context("model-methods")
set_cmdstan_path()
mod <- cmdstan_model(testing_stan_file("bernoulli_log_lik"), force_recompile = TRUE)
data_list <- testing_data("bernoulli")
fit <- mod$sample(data = data_list, chains = 1)
fit <- mod$sample(data = data_list, chains = 1, refresh = 0)

test_that("Methods error if not compiled", {
skip_if(os_is_wsl())
Expand Down

0 comments on commit 9769e8c

Please sign in to comment.