Open sfirke opened 6 years ago
Upon further reflection, I remember one can check the user's version # of janitor and then either call the current clean_names
if version <= 0.3.1 or clean_names(case = "old_janitor")
if version > 0.3.1. That could easily be done now.
Like this:
if (packageVersion("foo") > "1.0.0") {
foo::baz()
} else {
foo::bar()
}
^^ this error comes from changes to
janitor::clean_names
, currently on the master branch of the GitHub repo and going to CRAN sooner rather than later. It will start returning "vignette_builder" instead of "vignettebuilder" and other similar changes.Fix when janitor goes to CRAN and start requiring janitor >= 1.0 then. Will be a quick fix.