From a4bf0b060585728196dd10eba79d5ed1704ac495 Mon Sep 17 00:00:00 2001 From: Eliot McIntire Date: Wed, 2 Dec 2026 12:32:12 -0700 Subject: [PATCH] Tests: skip the two network tests when curl is not installed testthat::skip_if_offline() needs curl, which forestInputs does not import (LandR got it through httr2), so the no-Suggests CI leg errored there. curl goes in Suggests. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3 --- DESCRIPTION | 1 + tests/testthat/test-prepInputsFireYear.R | 1 + tests/testthat/test-prepInputsStandAgeMap.R | 1 + 3 files changed, 3 insertions(+) diff --git a/DESCRIPTION b/DESCRIPTION index 6e29fbf..0c98e48 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -33,6 +33,7 @@ Imports: terra, utils Suggests: + curl, httr2, testthat (>= 3.0.0), withr diff --git a/tests/testthat/test-prepInputsFireYear.R b/tests/testthat/test-prepInputsFireYear.R index fe1ce64..df37673 100644 --- a/tests/testthat/test-prepInputsFireYear.R +++ b/tests/testthat/test-prepInputsFireYear.R @@ -1,4 +1,5 @@ testthat::test_that("prepInputs fire year works", { + testthat::skip_if_not_installed("curl") # skip_if_offline() needs it testthat::skip_if_offline() testthat::skip_on_cran() testthat::skip_on_ci() diff --git a/tests/testthat/test-prepInputsStandAgeMap.R b/tests/testthat/test-prepInputsStandAgeMap.R index f3233c6..3a2738e 100644 --- a/tests/testthat/test-prepInputsStandAgeMap.R +++ b/tests/testthat/test-prepInputsStandAgeMap.R @@ -1,4 +1,5 @@ testthat::test_that("prepInputsStandAgeMap works", { + testthat::skip_if_not_installed("curl") # skip_if_offline() needs it testthat::skip_if_offline() testthat::skip_on_cran() testthat::skip_on_ci()