Usage
new_site(dir = ".", force, format = "yaml", sample = TRUE, theme = "dim0627/hugo_theme_robust", theme_example = TRUE, serve = TRUE)
new_content(path, format = "yaml", kind = NA, open = interactive())
Arguments
dir
The directory of the new site.
force
Whether to create a new site in an existing directory. The
default value is TRUE
if the dir
directory is empty or only
contain hidden files and RStudio project (*.Rproj) files, otherwise
FALSE
, to make sure your existing files are not overwritten.
format
The format of the configuration file or the frontmatter of the
new (R) Markdown file.
sample
Whether to add sample content. Hugo creates an empty site by
default, but this function adds sample content by default).
theme
A Hugo theme on Github (a chararacter string of the form
user/repo
).
theme_example
Whether to copy the example in the exampleSite
directory if it exists in the theme. Not all themes provide example sites.
serve
Whether to start a local server to serve the site.
path
The path to the new file.
kind
The content type to create.
open
Whether to open the new file after creating it. By default, it is
opened in an interactive R session.