Are there any clean ways to suppress warnings in
suppressWarnings()? There doesn't seem to be a
quiet = TRUE argument in
lubridate::as_date() like there is in
By the way, I'm totally fine with the
NAs here. It's the warning messages --
All formats failed to parse. No formats found -- that bother me.
Reprex if you're interested:
library(lubridate) # NA but with warnings lubridate::as_date("1995") #> Warning: All formats failed to parse. No formats found. #>  NA # Bad method but fine output (no warnings) suppressWarnings(lubridate::as_date("1995")) #>  NA
Created on 2018-08-25 by the reprex package (v0.2.0).