prune {pkglite}R Documentation

Remove files from a file collection

Description

Remove files from a file collection

Usage

prune(x, path)

## S3 method for class 'file_collection'
prune(x, path)

Arguments

x

File collection.

path

Character vector. Relative paths of the files to remove.

Value

Pruned file collection.

Specification

The contents of this section are shown in PDF user manual only.

Examples

system.file("examples/pkg1/", package = "pkglite") %>%
  collate(file_default()) %>%
  prune(path = c("NEWS.md", "man/figures/logo.png"))

[Package pkglite version 0.2.2 Index]