Skip to content

feat(getCRANrepos): de-duplicate the global repos option#177

Merged
eliotmcintire merged 2 commits into
developmentfrom
feature/getCRANrepos-dedup
Jun 10, 2026
Merged

feat(getCRANrepos): de-duplicate the global repos option#177
eliotmcintire merged 2 commits into
developmentfrom
feature/getCRANrepos-dedup

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Summary

getCRANrepos() now de-duplicates the global repos option in addition to its existing @CRAN@ handling:

  • After resolving @CRAN@ and stripping leftover placeholder entries, it drops duplicate repo URLs from getOption("repos") (keeping the first occurrence to preserve names) and writes the cleaned vector back to the global repos option in place.

This centralizes repo cleanup that previously lived in SpaDES.project::setupProject(), so downstream resolvers don't query the same repo twice.

Companion

Pairs with PredictiveEcology/SpaDES.project#112, which removes the now-redundant repos-munging block from setupProject().

🤖 Generated with Claude Code

eliotmcintire and others added 2 commits June 10, 2026 13:40
After resolving and stripping the `@CRAN@` placeholder, also drop
duplicate repo URLs from `getOption("repos")` (keeping the first
occurrence to preserve names) and write the cleaned vector back to the
global `repos` option in place. Centralizes repo cleanup that previously
lived in `SpaDES.project::setupProject()`, so downstream resolvers don't
query the same repo twice.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eliotmcintire eliotmcintire merged commit 986ba20 into development Jun 10, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant