| head {switchr} | R Documentation |
Head and tail operations on manifests
Description
Head and tail operations on manifests
Usage
head(x, ...)
## S4 method for signature 'SessionManifest'
head(x, n = 5, ...)
## S4 method for signature 'PkgManifest'
head(x, n = 5, ...)
tail(x, ...)
## S4 method for signature 'SessionManifest'
tail(x, n = 5, ...)
## S4 method for signature 'PkgManifest'
tail(x, n = 5, ...)
Arguments
x |
A manifest object |
... |
unused |
n |
The number of packages to keep |
Details
In the case of a PkgManifest, the first or last n
packages are retained in the manifest, while all others are removed.
In the case of a SessionManifest, n specified versions
are retained, while the underlying PkgManifest is unchanged.
Value
An object of the same type as x containing n packages
[Package switchr version 0.14.8 Index]