-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
litr::add_vignettes()
only copies across the .Rmd
file, but sometimes extra files are needed render the vignette -- e.g. .bib
files (see units package), or image files. It would be great to have a utility function to copy these assets over.
For example something like:
add_vignette_assets <- function(files){
fs::dir_create("vignettes")
mapply(fs::file_copy, files, "vignettes")
}
That could be used as:
add_vignette_assets("../xmap-source-files/using-xmaps.bib", "vignettes")
Metadata
Metadata
Assignees
Labels
No labels