Repository navigation
Tests: skip network tests when curl is not installed - #2
Merged
Merged
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The automatic check that runs without optional packages fails on two download tests. They should skip there, and now do.
Affects: tests only; no change to results.
Technical details
tests/testthat/test-prepInputsFireYear.R:2andtest-prepInputsStandAgeMap.R:2calltestthat::skip_if_offline(), which needs curl. forestInputs does not import curl (LandR got it through httr2), so theubuntu-latest (release, nosuggests)leg of run 46949256341 errored with "The package "curl" is required". Both tests now callskip_if_not_installed("curl")first, and curl is in Suggests so the other legs install it.🤖 Generated with Claude Code
https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3