Learn R Programming

pkglite (version 0.2.3)

prune: Remove files from a file collection

Description

Remove files from a file collection

Usage

prune(x, path)

# S3 method for file_collection prune(x, path)

Value

Pruned file collection.

Arguments

x

File collection.

path

Character vector. Relative paths of the files to remove.

Specification

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

Examples

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

Run the code above in your browser using DataLab