Skip to content

feat(resource): adds http resources for package archives - #54

Merged
dgkf merged 5 commits into
mainfrom
52-remote-archives
Aug 23, 2026
Merged

dgkf merged 5 commits into
mainfrom
52-remote-archives

Conversation

@dgkf

@dgkf dgkf commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Allows for pkgs to come from remote sources such as a CRAN pkg source url (https://cran.r-project.org/src/contrib/praise_1.0.0.tar.gz)

To make use of this, the default policy needs to be configured to allow this new type and a few permissions have to be enabled:

options(val.meter.policy = policy(
  source_resources = list(cran_repo_resource, repo_resource, http_resource), 
  permissions = TRUE  # at least "write", "network" to download and save to disk
))

pkg <- pkg("https://cran.r-project.org/src/contrib/praise_1.0.0.tar.gz")
pkg@resource

@dgkf
dgkf marked this pull request as draft August 20, 2026 22:39
@codecov-commenter

codecov-commenter commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.04%. Comparing base (c4d4e59) to head (ee4bc42).

Files with missing lines Patch % Lines
R/class_resource.R 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   31.31%   31.04%   -0.28%     
==========================================
  Files          36       36              
  Lines        1587     1601      +14     
==========================================
  Hits          497      497              
- Misses       1090     1104      +14     

☔ 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.

@dgkf
dgkf marked this pull request as ready for review August 23, 2026 23:09
@dgkf
dgkf merged commit 0d8791c into main Aug 23, 2026
8 checks passed
@dgkf
dgkf deleted the 52-remote-archives branch August 23, 2026 23:10
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