Closed VincentGuyader closed 2 years ago
after renv::activate() install_if_missing() will not detect missing pacakge.
renv::activate()
install_if_missing()
because find.package dont use {renv} libPaths
find.package
see :
we can do :
already_installed <- basename(try(find.package(to_be_installed, quiet = TRUE,lib.loc = .libPaths()), silent = TRUE))
Closed with https://github.com/ThinkR-open/attachment/commit/60fa932f099b82a95d04d82cf0dbd652299a0816
after
renv::activate()
install_if_missing()
will not detect missing pacakge.because
find.package
dont use {renv} libPathssee :