Skip to content

Update main branch - #111

Open
maksymiuks wants to merge 5 commits into
mainfrom
dev
Open

maksymiuks wants to merge 5 commits into
mainfrom
dev

Conversation

@maksymiuks

Copy link
Copy Markdown
Collaborator

No description provided.

maksymiuks and others added 4 commits August 10, 2026 20:07
…tory (#107)

* Add option to specify options inherited by subprocesses

* Match repositories by prefix in strip_src_contrib()

R-universe repositories report the `Repository` field of
`available.packages()` as a full, per-package tarball url
(`.../src/contrib/<pkg>_<ver>.tar.gz?sha256=...&file=`) rather than the
plain contrib url that CRAN-like repositories report. Comparing that
field to `contrib.url(repo)` with `==` therefore never matched, so
`strip_src_contrib()` returned `character(0)`, `pkg_origin_repo()`
stored an empty `repos`, and `get_package_source()` failed at check time
with `subscript out of bounds`.

Match by prefix instead, so a per-package tarball url still resolves back
to its originating repository. `contrib.url()` is left at its default
`type`, matching the type `available_packages()` uses to produce the
`Repository` field, so binary repositories keep working.

No change is needed in `get_package_source()`: R-universe crafts the
`Repository` field so that appending `/<pkg>_<ver>.tar.gz` (what
`utils::download.packages()` does, and what `get_package_source()`
already did) yields a valid download url.

Fixes #106

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Szymon Maksymiuk <32574056+maksymiuks@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* Add option to specify options inherited by subprocesses

* Slight improvments to the install_process env

* Update snapshot and NEWS
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 34.09091% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.07%. Comparing base (694ac18) to head (73d406f).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
R/results.R 6.66% 14 Missing ⚠️
R/remotes.R 0.00% 9 Missing ⚠️
R/task.R 0.00% 5 Missing ⚠️
R/install.R 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   82.84%   82.07%   -0.78%     
==========================================
  Files          29       29              
  Lines        2262     2309      +47     
==========================================
+ Hits         1874     1895      +21     
- Misses        388      414      +26     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

2 participants