Remove files from a file collection
Examples
system.file("examples/pkg1/", package = "pkglite") %>%
collate(file_default()) %>%
prune(path = c("NEWS.md", "man/figures/logo.png"))
#> -- File collection -------------------------------------------------------
#> -- Package: pkg1 ---------------------------------------------------------
#> path_rel format
#> 1 DESCRIPTION text
#> 2 NAMESPACE text
#> 3 README.md text
#> 4 R/data.R text
#> 5 R/hello.R text
#> 6 R/pkg1-package.R text
#> 7 R/sysdata.rda binary
#> 8 man/dataset.Rd text
#> 9 man/hello_world.Rd text
#> 10 man/pkg1-package.Rd text
#> 11 vignettes/example.bib text
#> 12 vignettes/pkg1.Rmd text
#> 13 data/dataset.rda binary