- files
character (default: NULL). R Markdown files and other files to
be added and committed with Git (step 1). Any R Markdown files will also be
built (step 2) and their output HTML and figures will be subsequently
committed (step 3). Supports file
globbing.
The files are always built in the order they are listed.
- message
character (default: NULL). A commit message.
- all
logical (default: FALSE). Automatically stage files that have been
modified and deleted. Equivalent to: git commit -a
- force
logical (default: FALSE). Allow adding otherwise ignored files.
Equivalent to: git add -f
- update
logical (default: FALSE). Build any files that have been
committed more recently than their corresponding HTML files (and do not
have any unstaged or staged changes). This ensures that the commit version
ID inserted into the HTML corresponds to the exact version of the source
file that was used to produce it.
- republish
logical (default: FALSE). Build all published R Markdown
files (that do not have any unstaged or staged changes). Useful for
site-wide changes like updating the theme, navigation bar, or any other
setting in _site.yml
.
- combine
character (default: "or"
). Determine how to combine the
files from the arguments files
, make
(wflow_build()
only), update
, and republish
. When combine
is
"or"
, any file specified by at least one of these arguments will be
built. When combine
is "and"
, only files specified by all of
these arguments will be built.
- view
logical (default: getOption("workflowr.view")
). View the
website with wflow_view
after building files. If only one
file is built, it is opened. If more than one file is built, the main index
page is opened. Not applicable if no files are built or if dry_run =
TRUE
.
- delete_cache
logical (default: FALSE). Delete the cache directory (if
it exists) for each R Markdown file prior to building it.
- seed
numeric (default: 12345). The seed to set before building each
file. Passed to set.seed
. DEPRECATED: The seed set
here has no effect if you are using wflow_html
as the output
format defined in _site.yml
. This argument is for backwards
compatibility with previous versions of workflowr.
- verbose
logical (default: FALSE). Display the build log directly in
the R console as each file is built. This is useful for monitoring
long-running code chunks.
- dry_run
logical (default: FALSE). Preview the proposed action but do
not actually add or commit any files.
- project
character (default: ".") By default the function assumes the
current working directory is within the project. If this is not true,
you'll need to provide the path to the project directory.