powered by
Remove files from a file collection
prune(x, path)# S3 method for file_collection prune(x, path)
# S3 method for file_collection prune(x, path)
Pruned file collection.
File collection.
Character vector. Relative paths of the files to remove.
The contents of this section are shown in PDF user manual only.
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