Show warnings from the tidyverse all the time

276 Views Asked by At

I am using a deprecated feature from the tidyverse. So a warning is produced that finishes like this:

This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

My question is how to always show the warnings from the tidyverse, not just every 8 hours.

I have seen this solution in Posit Community:

options(lifecycle_verbosity = "warning")

but does not work for me.

1

There are 1 best solutions below

2
Fede B On

The correct spell is:

options("lifecycle_verbosity"="warning")

since options() expects a string type argument.

You can check current state with:

getOption("lifecycle_verbosity")

Reference: https://rdrr.io/r/base/options.html