Closed cderv closed 3 years ago
I think this will be needed more in the future and xfun::loadable() don't have a test on the min version.
xfun::loadable()
This is what is used in shiny and now rmarkdown
# a la shiny:::is_available is_available <- function(package, version = NULL) { installed <- nzchar(system.file(package = package)) if (is.null(version)) { return(installed) } installed && isTRUE(utils::packageVersion(package) >= version) }
Should be a new function or an adaptation of xfun::loadable()
Done (pkg_available()). Thanks!
pkg_available()
So efficient ! It was mainly as a reminder to add it... when we have time ! 😅
But it was easy enough and so the quicker the better ! Why report to later ? 😄
Thanks!
I think this will be needed more in the future and
xfun::loadable()
don't have a test on the min version.This is what is used in shiny and now rmarkdown
Should be a new function or an adaptation of
xfun::loadable()