Display, save or load the list of attached packages.
Details
attpkglist simply lists all attached packages (i.e. not base
packages).
savepkglist saves the list of all attached packages in a file, with
one package per line.
loadpkglist loads a list of packages from a file. The file should
contain one package name per line, without quotes, and no empty line. If the
packages are not installed, the function sends a warning.
.loadpkglist automatically loads the .Rpackages file at startup
(see the Note below).
Note
To automatically load a .Rpackages list at startup, add this in
your .Rprofile:
### Load packages at the start of R if the package list exists
basr:::.loadpkglist()Essentially, the function appends the list of packages at the end of the
defaultPackages option (see options for this
option; see also Startup for more details about the
initialization at start of an R session).