A polite helper for installing and update packages (quite exactly) inspired from a function used by Hadley Wickham at `RStudio::conf 2018 - San Diego`.

please_install(pkgs, install_fun = install.packages, ...)

Arguments

pkgs

character vector of package(s) to install

install_fun

function to use for installing package(s)

...

further options for install_fun

Value

invisible