danilinares
danilinares

Reputation: 1260

Show warnings from the tidyverse all the time

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.

Upvotes: 4

Views: 580

Answers (2)

Sergey Skripko
Sergey Skripko

Reputation: 364

from rlang documentation

options(rlib_warning_verbosity = "verbose")

Upvotes: 0

Fede B
Fede B

Reputation: 82

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

Upvotes: 0

Related Questions