Internal Objects in Package base
Internal objects in the base package most of which are only user-visible because of the special nature of the base namespace.
.subset(x, …) .subset2(x, …)
.getRequiredPackages(file = "DESCRIPTION", lib.loc = NULL, quietly = FALSE, useImports = FALSE) .getRequiredPackages2(pkgInfo, quietly = FALSE, lib.loc = NULL, useImports = FALSE)
.isMethodsDispatchOn(onOff = NULL)
sys.load.image(name, quiet) sys.save.image(name)
.row_names_info(x, type = 1L) .set_row_names(n)
lazyLoadDBfetch(key, file, compressed, hook)
.gt(x, i, j) .gtn(x, strictly)
.POSIXct(xx, tz = NULL) .POSIXlt(xx, tz = NULL) .difftime(xx, units)
.mapply(FUN, dots, MoreArgs)
.maskedMsg(same, pkg, by)
object from which to extract elements.
The full path to the
DESCRIPTIONfile of a package.
a character vector describing the location of R library trees to search through, or
NULL. The default value of
NULLcorresponds to all libraries currently known to
logical. Should this not give warnings or an error if the package(s) are not found?
logical. Should the
Importsfield be processed?
logical: should message(s) be printed.
DESCRIPTIONfile of class
- built, run
platform strings of the form
name of image file to save or load.
an object with a
"row.names"attribute, typically a data frame.
type = 0returns the internal
type = 2the number of rows implied by the attribute, and
type = 1the latter with a negative sign for ‘automatic’ row names.
integer. The number of rows.
character string such as
the object name in a lazyload database.
the filepath to a lazyload database.
logical: are the values in the database compressed?
a load hook: see
a length-one integer vector.
- i, j
an R object.
a classless object to be placed into the class.
an optional time zone.
Arguments passed to non-dot name versions.
function to apply, found via
list of arguments to vectorize over (vectors or lists of strictly positive length, or all of zero length).
a list of other arguments to
character vector of same objects, masking others.
character string naming the package which is masked from or by.
logical indicating if the masking happens by
pkg, or (
by = FALSE) from
.subset2 are essentially
equivalent to the
except that methods dispatch does not take place. This is to avoid
expensive unclassing when applying the default method to an object. They
should not normally be invoked by end users. Note that unlike the
operators they are builtins and not specials (all arguments are
evaluated) and hence do not allow missing arguments.
.getRequiredPackages2 attaches all the packages mentioned in the
Depends field: failure to find a package is an error. It also
checks the versions of the packages found against the
.getRequiredPackages is a wrapper to
.getRequiredPackages2 using a
testPlatformEquivalence is used to test if a package with
compiled code can safely be loaded into a build of R, which it does by
comparing their ‘canonical’
The default function omits the
vendor part and allows small
the S4 method dispatch has been turned on in the evaluator (usually by
loading package methods). It is meant for R internal use only.
sys.save.image is a system function that is called by
and its GUI analogs;
sys.load.image is called by the startup code.
These functions should not be called directly and are subject to change.
sys.save.image closes all connections first, to ensure that it
is able to open a connection to save the image. This is appropriate
when called from
q() and allies, but reinforces the warning
that it should not be called directly.
row.names can be stored internally in compact form.
.set_row_names(n) generates that form for automatic row names
n, to be assigned to
attr(<a data frame>, "row.names").
gives information on the internal form of the row names for a data
frame: for details of what information see the argument
.ArgsEnv are environments that
contain closures with the argument lists that the primitives would
have had had they been closures. All the primitives that are internal
S3 generics have corresponding members of
the remaining non-language-element primitives correspond to
.ArgsEnv. See the ‘R Internals’ manual for further
details. They are used by
print.default and the QC functions
findPackageEnv is invoked by the unserialize code to set a
saved environment if possible.
.TAOCP1997init is the initialization code for the
.difftime are class
.cache_class caches the inheritance of an S4 class for use in
S3 method dispatch. With
NULL second argument it returns the
cached inheritance, for diagnostic use.
.popath is a variable created at startup which records where
the translations package in use is.
.detach are ‘bare-bones’ versions for
use in other R packages.
.F_ are references to
registered C and Fortran entry points.