Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_ref could take in the output of R CMD build #358

Open
llrs-roche opened this issue Nov 21, 2024 · 0 comments
Open

pkg_ref could take in the output of R CMD build #358

llrs-roche opened this issue Nov 21, 2024 · 0 comments

Comments

@llrs-roche
Copy link

R packages to be assessed might come on different forms. riskmetric already accounts for multiple ways: from uncompressed source folders, from CRAN, from Bioconductor and from libraries. However, one could have a compressed packages from R CMD build to assess them:

# Here I just download it to make a minimal reprex
download.file("https://cran.r-project.org/src/contrib/flow_0.2.0.tar.gz", destfile = "flow_0.2.0.tar.gz")
## trying URL 'https://cran.r-project.org/src/contrib/flow_0.2.0.tar.gz'
## Content type 'application/x-gzip' length 3790402 bytes (3.6 MB)
## downloaded 3.6 MB
## 
pkg_ref("flow_0.2.0.tar.gz")
## Error in determine_pkg_source(x, source, repos) : 
##   can't interpret character 'flow_0.2.0.tar.gz' as a package reference
```

I am asking for this because when trying to build reports for packages with the output of R CMD check and the assessment we might not want to have them (yet) on a library or uncompressed. The solution might be as easy as using `untar`, but I think it might be a nice to have feature given that riskmetric already provides several methods to ingest packages. 

Note: that I think `R CMD build` can be can be compressed with different methods, but I would start by accepting .tar.gz files, as this is the default and more common. 
@llrs-roche llrs-roche added the Enhancement New feature or request label Nov 21, 2024
@llrs llrs changed the title pkg_ref should take in the output of R CMD build pkg_ref could take in the output of R CMD build Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants