sfirke / packagemetrics

A Package for Helping You Choose Which Package to Use
Other
134 stars 6 forks source link

Error in .f(.x[[i]], ...) : object 'vignettebuilder' not found #39

Open sfirke opened 6 years ago

sfirke commented 6 years ago

^^ 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.

sfirke commented 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()
}

Source: http://r-pkgs.had.co.nz/release.html