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

Make helpers default depend on export_all #259

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented Sep 21, 2023

Closes #244

The testthat helpers are sourced into the pkgload env, and these might depend on non-exported bindings. Sourcing the helpers by default when export_all = FALSE will cause unexpected behaviour in that case. This patch changes the default to match export_all.

In particular, this makes devtools::run_examples() more reliable.

Ideally I'd make export_all = FALSE, helpers = TRUE an error, but I don't have a sense of how much of a breaking change that would be for devtools-based tools.

@lionel- lionel- requested a review from hadley September 21, 2023 08:53
@lionel- lionel- merged commit 8aebdb5 into main Sep 21, 2023
12 checks passed
@lionel- lionel- deleted the fix-helpers-export branch September 21, 2023 13:23
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.

Can't use load_all(export_all = FALSE) for dbplyr
2 participants