headtail: Head and tail operations on manifests

headR 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


switchr documentation built on March 31, 2023, 5:13 p.m.