Skip to content

Drop ten unused packages from Suggests; setupOff() finds the project folder without rprojroot - #255

Merged
eliotmcintire merged 2 commits into
fix/round6-odd-itemsfrom
chore/drop-unused-suggests
Dec 5, 2026
Merged

eliotmcintire merged 2 commits into
fix/round6-odd-itemsfrom
chore/drop-unused-suggests

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Require listed ten packages in Suggests that nothing in its code or tests needs any more. Most are leftovers from the old installer or old test tooling. They are removed, so fewer packages have to be installed to check or develop Require.

Affects: Nothing for users. Installing Require's suggested packages pulls in ten fewer.

Depends-on: #254

Technical details

Removed from Suggests: cli, covr, diffobj, fpCompare, pkgcache, rematch2, rlang, roxygen2, waldo, rprojroot.

  • diffobj and rematch2 are not used anywhere.
  • cli, rlang and covr appear only as package-name strings. The shared coverage workflow installs covr itself.
  • roxygen2 is a documentation tool only.
  • waldo is imported by testthat. Its only use was a dead library(waldo) inside if (FALSE) in test-04, which is now deleted; R CMD check flagged it as undeclared.
  • fpCompare is installed by the tests from GitHub, as a test subject.
  • pkgcache was used only by a system.file() lookup that already falls back.
  • rprojroot was used only by setupOff(). It is replaced by a base-R helper, findRprojDir(), which walks up from the working directory to a folder holding a *.Rproj file. New test in test-31; the existing setupOff project-root test no longer skips without rprojroot.

R CMD check --as-cran --no-tests (_R_CHECK_FORCE_SUGGESTS_=false): 1 NOTE, the development version number only.
Full local devtools::test() (2.1.1.9056): 562 tests, 2477 passed, 0 failed/errors/warnings/skipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXgG6hSA1CRAMhvKajR

…with base R (no rprojroot)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXgG6hSA1CRAMhvKajR
@eliotmcintire eliotmcintire added enhancement New feature or request backwards compatible Existing code and results keep working unchanged labels Dec 5, 2026
…uthThenNonAuth() stays on httr (#256)

.downloadFileMasterMainAuth() now uses a new internal curlGETauth()
(curl::curl_fetch_memory(), same bad-credentials/404 fallback). The exported
GETWauthThenNonAuth() is unchanged and still returns an httr response,
because SpaDES.core (module-repository.R) reads it with httr::content() and
httr::stop_for_status(); httr stays in Suggests for it. checkForToken() now
needs curl, not httr.


Claude-Session: https://claude.ai/code/session_01Lx3DXgG6hSA1CRAMhvKajR

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@eliotmcintire
eliotmcintire merged commit 93f8409 into fix/round6-odd-items Dec 5, 2026
1 check passed
@eliotmcintire
eliotmcintire deleted the chore/drop-unused-suggests branch December 5, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards compatible Existing code and results keep working unchanged enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant