Usage
library(package, help, pos = 2, lib.loc = NULL,
character.only = FALSE, logical.return = FALSE,
warn.conflicts = TRUE,
keep.source = getOption("keep.source.pkgs"),
verbose = getOption("verbose"),
version, inSweave,
keywordstyles, interm.keywordstyles, overwrite, intermediate)
require(package, lib.loc = NULL, quietly = FALSE,
warn.conflicts = TRUE,
keep.source = getOption("keep.source.pkgs"),
character.only = FALSE, version, save = TRUE, inSweave,
keywordstyles, interm.keywordstyles, overwrite, intermediate)
Arguments
package, help
the name of a package, given as a name or
literal character string, or a character string, depending on
whether character.only
is FALSE
(default) or
TRUE
). pos
the position on the search list at which to attach the
loaded package. Note that .First.lib
may attach other
packages, and pos
is computed after .First.lib
has been run. Can also be the name
lib.loc
a character vector describing the location of Rlibrary trees to search through, or NULL
. The default value
of NULL
corresponds to all libraries currently known.
Non-existent library trees are silently ignored.
character.only
a logical indicating whether package
or
help
can be assumed to be character strings.
version
A character string denoting a version number of the
package to be loaded, for use with versioned installs: see
the section later in this document.
logical.return
logical. If it is TRUE
, FALSE
or
TRUE
is returned to indicate success.
warn.conflicts
logical. If TRUE
, warnings are
printed about conflicts
from attaching the new
package, unless that package contains an object
.conflicts.OK
. A conflict is a func keep.source
logical. If TRUE
, functions
keep their source including comments, see argument
keep.source
to options
. This applies only to
the named package, and verbose
a logical. If TRUE
, additional diagnostics are
printed.
quietly
a logical. If TRUE
, no message confirming
package loading is printed.
save
logical or environment. If TRUE
, a call to
require
from the source for a package will save the name of
the required package in the variable ".required"
, allowing
function
inSweave
shall the command show Sweave behaviour (no startup messages;
instead issuing new symbols for morekeywords
tag in
language definition of Rin TeX package listings)?
By defau
keywordstyles
character or missing or NULL
; added argument in masked
versions of library
and require
of package
SweaveListingUtils; if given, the keywordstyle to be
used by TeX package 'listings' for the symbol interm.keywordstyles
character or missing or NULL
; added argument in masked
versions of library
and require
of package
SweaveListingUtils; if given, the keywordstyle to be
used by TeX package 'listings' for the symbol overwrite
logical or missing or NULL
; added argument in masked
versions of library
and require
of package
SweaveListingUtils; if missing, the corresponding global option is read
out by
intermediate
logical or missing or NULL
; added argument in masked
versions of library
and require
of package
SweaveListingUtils; if missing, the corresponding global option is read
out by