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

Include R6 as Suggests? #371

Closed
MichaelChirico opened this issue Mar 20, 2023 · 2 comments · Fixed by #386
Closed

Include R6 as Suggests? #371

MichaelChirico opened this issue Mar 20, 2023 · 2 comments · Fixed by #386
Labels
upkeep maintenance, infrastructure, and similar

Comments

@MichaelChirico
Copy link
Contributor

R6 is a build-time dependency of rvest, e.g.

rvest/R/text.R

Line 189 in 8e19075

PaddedText <- R6::R6Class("PaddedText", list(

This is a place where R's dependency system is a bit lacking in detail. AIUI CRAN rules don't specify anything about declaring build-time dependencies, and I haven't seen anything in WRE that describes rules either. See also RcppCore/Rcpp#1254.

So I don't think there's any rule saying 'R6' needs to be mentioned in the DESCRIPTION; nor is there any tooling to help make sure this list is up-to-date*. But still I think it's good practice that R6 should be mentioned somewhere in DESCRIPTION. I think the most natural place to do so is in 'Suggests'.

*That's not quite true. The reason I discovered this is with an extended version of R CMD check I wrote that runs tools:::.check_packages_used(dir = pkg_dir), which will flag the usage (but not surface it in R CMD check, not sure why)

@hadley
Copy link
Member

hadley commented Aug 8, 2023

@hadley hadley closed this as completed Aug 8, 2023
@hadley
Copy link
Member

hadley commented Aug 8, 2023

Ooops, it is in that branch

@hadley hadley reopened this Aug 8, 2023
@hadley hadley added the upkeep maintenance, infrastructure, and similar label Oct 30, 2023
hadley added a commit that referenced this issue Jan 23, 2024
@hadley hadley mentioned this issue Jan 23, 2024
@hadley hadley closed this as completed in ee093b1 Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upkeep maintenance, infrastructure, and similar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants