reset_site: Remove all files associated with the site

Description Usage Arguments Examples

View source: R/reset_site.R

Description

Use this if you want to rebuild your site from scratch.

Usage

1
reset_site(path = ".")

Arguments

path

the path to the site

Examples

1
2
3
4
5
6
7
tmp <- tempfile()
create_lesson(tmp)
if (rmarkdown::pandoc_available("2.11"))
  build_lesson(tmp, preview = FALSE)
dir(file.path(tmp, "site"))
reset_site(tmp)
dir(file.path(tmp, "site"))

zkamvar/sandpaper documentation built on Nov. 25, 2021, 1:16 p.m.