Clean up example repo files

example_repo_cleanup(files_to_remove, verbose = FALSE)

Arguments

files_to_remove

List of example files to delete.

verbose

TRUE/FALSE would you like progress messages?

Examples

# Run this to get the files we need example_files <- ottrpal::example_repo_setup() # Run this to delete them example_repo_cleanup(files_to_remove = basename(example_files))
#> Cleaning up and removing example repo files
#> Removing: _bookdown.yml
#> Removing: 01-intro.Rmd
#> Removing: 02-example-chapter.Rmd
#> Removing: docs
#> Warning: cannot remove file 'docs', reason 'Directory not empty'
#> Removing: index.Rmd
#> Removing: manuscript
#> Warning: cannot remove file 'manuscript', reason 'Directory not empty'
#> Removing: quiz_bad.md
#> Removing: quiz_good.md
#> Removing: quiz_good.md.yml
#> Removing: quizzes
#> Removing: references.bib
#> Removing: resources
#> Warning: cannot remove file 'resources', reason 'Directory not empty'
#> Removing: toc_close.css
#> Removing: question_error_report.tsv
#> [[1]] #> [1] TRUE #> #> [[2]] #> [1] TRUE #> #> [[3]] #> [1] TRUE #> #> [[4]] #> [1] FALSE #> #> [[5]] #> [1] TRUE #> #> [[6]] #> [1] FALSE #> #> [[7]] #> [1] TRUE #> #> [[8]] #> [1] TRUE #> #> [[9]] #> [1] TRUE #> #> [[10]] #> [1] TRUE #> #> [[11]] #> [1] TRUE #> #> [[12]] #> [1] FALSE #> #> [[13]] #> [1] TRUE #> #> [[14]] #> [1] TRUE #> #> [[15]] #> NULL #>