Add generated reports, figures, and HTML libraries to .gitignore
Arguments
- path
path of the directory containing the input files
.gitignore
and_bookdown.yml
.- figs_only
logical; if
TRUE
(default), only figures are git ignored.
Examples
# \donttest{
wd <- tempdir()
savedir <- setwd(wd)
file.copy(list.files(system.file("extdata", package = "rsf"),
full.names = TRUE, all.files = TRUE, no.. = TRUE), ".")
#> [1] TRUE TRUE TRUE TRUE TRUE
file.rename("gitignore", ".gitignore")
#> [1] TRUE
git_ignore_outputs(figs_only = FALSE)
#> ✔ Adding 'docs', '_bookdown_files' to './.gitignore'
setwd(savedir)
# }