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

use Rd_db to handle logic of loading help #2111

Merged
merged 5 commits into from
Sep 7, 2023
Merged

use Rd_db to handle logic of loading help #2111

merged 5 commits into from
Sep 7, 2023

Conversation

MichaelChirico
Copy link
Collaborator

Closes #2002

Main advantages (1) robust to R implementation details like "how is help stored in a package" and (2) works when running under pkgload::load_all()

@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2023

Codecov Report

Merging #2111 (c679e85) into main (3592898) will not change coverage.
The diff coverage is n/a.

❗ Current head c679e85 differs from pull request most recent head 9141be0. Consider uploading reports for the commit 9141be0 to get more accurate results

@@           Coverage Diff           @@
##             main    #2111   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files         119      119           
  Lines        5228     5228           
=======================================
  Hits         5210     5210           
  Misses         18       18           


lintr_db <- available_linters(exclude_tags = NULL)
lintr_db$package <- NULL
lintr_db$tags <- lapply(lintr_db$tags, function(x) if ("deprecated" %in% x) "deprecated" else sort(x))
lintr_db <- lintr_db[order(lintr_db$linter), ]

expect_true(exists("linters", envir = help_env), info = "?linters exists")
expect_true("linters.Rd" %in% names(help_db))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the info=?

@MichaelChirico MichaelChirico merged commit fa914d0 into main Sep 7, 2023
20 of 21 checks passed
@MichaelChirico MichaelChirico deleted the rd-db branch September 7, 2023 06:04
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.

Use tools::Rd_db() to simplify some of the available_linters() testing
3 participants