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

renv::dependencies() returns R as a "Package" #1806

Closed
cjyetman opened this issue Jan 31, 2024 · 1 comment
Closed

renv::dependencies() returns R as a "Package" #1806

cjyetman opened this issue Jan 31, 2024 · 1 comment

Comments

@cjyetman
Copy link

When a DESCRIPTION file specifies a minimum version of R in Depends, renv::dependencies() returns R as a "Package", though that's not completely correct since there is no R package named "R". I suspect there's some good reason for renv::dependencies() to include the specified minimum version of R in its return value/object, but it would be nice if it was somehow clearly marked as not-really-a-package. I was using renv::dependencies()[['Package']] to feed into e.g. pak::pak(renv::dependencies()[['Package']]), which worked fine until I added a DESCRIPTION file to a non-R-package project that specified a minimum R version.

@kevinushey
Copy link
Collaborator

Thanks for the bug report -- I agree we should likely just exclude R in these cases.

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

No branches or pull requests

2 participants