loadPackage(packages, halt = TRUE, silent = FALSE)
Arguments
packages
string vector of package names.
halt
logical if TRUE a 'stop' is issued on
failure, else a 'warning' is given.
silent
logical if TRUE messages are printed.
Details
This is a helper function. Provided a string vector of
package names it tries to load the packages. If
unsuccessful it tries to install the package and then load
it. If still unsuccessful the execution is halted or a
warning is issued (option).