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

Fix NSE in shim_help(package = ) #267

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Fix NSE in shim_help(package = ) #267

merged 2 commits into from
Jan 24, 2024

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented Jan 24, 2024

Closes #266

@@ -22,6 +22,12 @@ test_that("shim_help behaves the same as utils::help for nonexistent objects", {
expect_equal(length(shim_help("foofoo")), 0)
})

test_that("shim_help works with complex NULL `package = ` argument (#266)", {
expect_equal(
class(pkgload:::shim_help(list, package = (NULL))),
Copy link
Member

Choose a reason for hiding this comment

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

not sure if you also want something like this as a test

package <- NULL
pkgload:::shim_help("arg_match0", package = (package))

possibly this is just captured by your current test

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added it just in case

@lionel- lionel- merged commit 181bf76 into main Jan 24, 2024
12 checks passed
@lionel- lionel- deleted the bugfix/package-expr branch January 24, 2024 17:34
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.

Error with complex package = argument
2 participants