prune: Remove files from a file collection

View source: R/collection.R

pruneR 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"))

pkglite documentation built on Aug. 29, 2022, 1:05 a.m.