require.quiet {pkgmaker} | R Documentation |
Loading Packages
Description
require.quiet
silently requires a package, and qrequire
is an alias to require.quiet
.
Usage
require.quiet(...)
qrequire(...)
qlibrary(...)
mrequire(msg, package, lib.loc = NULL, quietly = FALSE)
Arguments
... |
|
msg |
error message to use, to which is appended the string
|
package |
name of the package to load. |
lib.loc |
a character vector describing the location of R
library trees to search through, or |
quietly |
a logical. If |
Value
No return value, called to load packages.
Functions
-
qlibrary()
: silently loads a package. -
mrequire()
: tries loading a package with baserequire
and stops with a – custom – error message if it fails to do so.
See Also
Other require:
irequire()
Examples
mrequire('Running this example', 'stringr')
try( mrequire('Doing impossible things', 'notapackage') )