From cf06dba4fdaaed299f03a634f217a5dca66394cb Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 11 Sep 2024 17:22:42 +0100 Subject: [PATCH] Hotfix: Don't skip stan locally when testing --- tests/testthat/test-stan-expgrowth.R | 7 +++++-- tests/testthat/test-stan-primary_censored_integrand.R | 7 +++++-- tests/testthat/test-stan-rpd-primarycensoreddist.R | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/testthat/test-stan-expgrowth.R b/tests/testthat/test-stan-expgrowth.R index 5a0777a..322e451 100644 --- a/tests/testthat/test-stan-expgrowth.R +++ b/tests/testthat/test-stan-expgrowth.R @@ -1,6 +1,9 @@ skip_on_cran() -skip_on_os("windows") -skip_on_os("mac") +if (!on_ci()) { + skip_on_os("windows") + skip_on_os("mac") +} + test_that("Stan expgrowth_pdf matches R dexpgrowth", { x <- seq(0, 1, by = 0.1) diff --git a/tests/testthat/test-stan-primary_censored_integrand.R b/tests/testthat/test-stan-primary_censored_integrand.R index 861a5dc..53ca30d 100644 --- a/tests/testthat/test-stan-primary_censored_integrand.R +++ b/tests/testthat/test-stan-primary_censored_integrand.R @@ -1,6 +1,9 @@ skip_on_cran() -skip_on_os("windows") -skip_on_os("mac") +if (!on_ci()) { + skip_on_os("windows") + skip_on_os("mac") +} + test_that("Stan primary_censored_integrand produces expected output", { x <- 4.5 diff --git a/tests/testthat/test-stan-rpd-primarycensoreddist.R b/tests/testthat/test-stan-rpd-primarycensoreddist.R index 0287179..112ae0d 100644 --- a/tests/testthat/test-stan-rpd-primarycensoreddist.R +++ b/tests/testthat/test-stan-rpd-primarycensoreddist.R @@ -1,6 +1,9 @@ skip_on_cran() -skip_on_os("windows") -skip_on_os("mac") +if (!on_ci()) { + skip_on_os("windows") + skip_on_os("mac") +} + test_that("Stan primary_censored_dist_cdf matches R pprimarycensoreddist", { d_values <- list(