Skip to content

Namespace-qualify rlang::local_options() in tests #1645

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Jun 23, 2025

Currently, library(tibble); testthat::test_file('third_party/R/packages/tibble/tibble/tests/testthat/test-as_tibble.R') fails for me on not finding this function.

IINM, what's going on is in "normal" testthat suite runs, the package namespace will be attached, and hence import(rlang) will do its job. I'm not quite sure why that hasn't happened for me under test_file(), but it does seem helpful not to assume upstream packages are available, anyway.

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.

1 participant