Skip to content

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

Draft
dgkf wants to merge 2 commits into
mainfrom
52-remote-archives
Draft

feat(resource): adds http resources for package archives#54
dgkf wants to merge 2 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

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Patch % Lines
R/class_resource.R 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   31.31%   31.08%   -0.24%     
==========================================
  Files          36       36              
  Lines        1587     1599      +12     
==========================================
  Hits          497      497              
- Misses       1090     1102      +12     

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

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