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

Implement package-level quiet option #14

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Implement package-level quiet option #14

merged 1 commit into from
Feb 8, 2024

Conversation

bpbond
Copy link
Member

@bpbond bpbond commented Feb 8, 2024

Closes #13

@bpbond bpbond merged commit 4c1f951 into main Feb 8, 2024
5 checks passed
@bpbond bpbond deleted the quiet branch February 8, 2024 13:47
@@ -1,24 +1,24 @@
test_that("wtf_read_LI7810 works", {

options(whattheflux.quiet = TRUE)
Copy link

Choose a reason for hiding this comment

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

in test files, I myself tend to use withr::local_options() to be sure it's reset. 😇

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you @maelle ! I'm hesitant to introduce another package dependency just for this, but will consider.

Copy link

Choose a reason for hiding this comment

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

testthat itself imports withr, so it's already there, it'd just be one more line in Suggests 😇 but more seriously I completely understand, no pressure 😀

@maelle
Copy link

maelle commented Feb 8, 2024

So cool, thanks for sharing 🙏

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.

Verbosity
2 participants