update_site
rebuilds all source files that are new or have changed since
the last time the site was built.
update_dir
updates changed files in a subdirectory of "content"
update_site( dir = NULL, quiet = FALSE, force = FALSE, local = FALSE, run_hugo = TRUE ) update_dir(dir = ".", quiet = FALSE, force = FALSE, ignore = NA_character_)
dir | A string containing the root directory for checking. By default, the "content" directory of the project. |
---|---|
quiet | Suppress output. By default this is |
force | Force rebuilding source files that are not out of date. |
local | Whether to build the website locally. This argument is passed to
|
run_hugo | Whether to run |
ignore | A regular expression pattern for files to ignore. |
This function does not return anything
Given a source directory (by default the "content" directory in the
root directory of the project), find all source files (.Rmd
and
.rmarkdown
) in the directory tree under the source directory,
calculate hashed digests of the files, and compare them to a
stored list of digests from the last time the site was built.
If the digests of either the source or output files don't match, if a source file is new since the last time the site was built, or if the output file does not exist, then render the source file.
After rendering any out-of-date files, regenerate the digest list and saves it to a file.
build_site()
, build_dir()
,
digests
.