diff --git a/R/utilities.R b/R/utilities.R index 87b9de8a..83245b40 100644 --- a/R/utilities.R +++ b/R/utilities.R @@ -194,8 +194,8 @@ samples_median_ci <- function(samples, level = 0.95) { decorated_render <- function(...) { jinjar::render( ..., - machine_double_eps = sqrt(.Machine$double.eps), - machine_double_neg_eps = sqrt(.Machine$double.neg.eps) + machine_double_eps = 0, + machine_double_neg_eps = 0 ) } diff --git a/tests/testthat/test-SurvivalLoglogistic.R b/tests/testthat/test-SurvivalLoglogistic.R index db1f4162..fb28f99e 100644 --- a/tests/testthat/test-SurvivalLoglogistic.R +++ b/tests/testthat/test-SurvivalLoglogistic.R @@ -16,8 +16,8 @@ test_that("sim_os_loglogistic() is consistant with flexsurv", { test_that("SurvivalLogLogistic can recover known values", { - true_a <- 400 - true_b <- 2 + true_a <- 300 + true_b <- 3 true_beta <- c(0.5, -0.2, 0.1) set.seed(837) @@ -38,8 +38,8 @@ test_that("SurvivalLogLogistic can recover known values", { jm <- JointModel( survival = SurvivalLogLogistic( - a = prior_lognormal(log(400), 1), - b = prior_lognormal(log(2), 1) + a = prior_lognormal(log(true_a), 1), + b = prior_lognormal(log(true_b), 1) ) ) @@ -60,8 +60,8 @@ test_that("SurvivalLogLogistic can recover known values", { sampleStanModel( jm, data = jdat, - iter_warmup = 300, - iter_sampling = 400, + iter_warmup = 350, + iter_sampling = 450, chains = 1, refresh = 0, parallel_chains = 1 diff --git a/tests/testthat/test-jinjar_render.R b/tests/testthat/test-jinjar_render.R index ed49c772..d03c99f1 100644 --- a/tests/testthat/test-jinjar_render.R +++ b/tests/testthat/test-jinjar_render.R @@ -23,7 +23,7 @@ test_that("Global variables defined by `decorated_render() are usable", { "%d hi there %s and %s", 5, "bob", - scales::scientific(sqrt(.Machine$double.eps), digits = 5) + 0 ) expect_equal(observed, expected) })