Description Usage Arguments Details Note Author(s) Examples
Display, save or load the list of attached packages.
1 2 3 4 5 6 7 | savepkglist(file = ".Rpackages")
attpkglist()
loadpkglist(file = ".Rpackages")
.loadpkglist()
|
file |
The name of the file in which to save the list of attached packages, or from which to load it. The path is relative to the current working directory. |
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).
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).
Mathieu Basille basille@ufl.edu
1 2 3 | ## Not run: savepkglist(file = "list.Rpackages")
## Not run: attpkglist()
## Not run: loadpkglist()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.