Learn R Programming

svMisc (version 0.9-60)

r: A very silent and multipackage require() function

Description

This function is deprecated in favor of pkg() (more informative name that is less susceptible to be used elsewhere)! This function loads one or several R packages as silently as possible and it returns TRUE only if all packages are loaded successfully. If at least one loading fails, a short message is printed.

Usage

r(...)

Arguments

...
the name of one or several R packages to load (character strings).

Value

  • TRUE if all packages are loaded correctly, FALSE otherwise. This function is designed to concisely and quietly indicate package requirements in GUI menu or other GUI actions.

See Also

pkg