You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings can be very useful to detect bugs in the tests and in the code to be tested
If you want to get rid of some (once you understand them, just suppress them using suppressMessages or suppressWarnings, or better test them using expect_warning
now it is impossible to test code that deals with warnings. For instance suppose that you want to test a function that turns warnings into errors using the warn=2 option, it does no longer work in testthat tests.
code does not behave like in the real R world.
just my opinion.
The text was updated successfully, but these errors were encountered:
Because:
warnings can be very useful to detect bugs in the tests and in the code to be tested
If you want to get rid of some (once you understand them, just suppress them using suppressMessages or suppressWarnings, or better test them using expect_warning
now it is impossible to test code that deals with warnings. For instance suppose that you want to test a function that turns warnings into errors using the warn=2 option, it does no longer work in testthat tests.
code does not behave like in the real R world.
just my opinion.
The text was updated successfully, but these errors were encountered: