Learn R Programming

workflowr (version 0.2.0)

commit_site: Commit the website files

Description

commit_site ensures that the website files are created by the code that has been committed to the Git repository.

Usage

commit_site(dry_run = FALSE, path = ".")

Arguments

dry_run

Identifies R Markdown files that have been updated, but does not render them.

path

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.

Value

If dry_run = TRUE, returns the character vector of R Markdown files that would be rendered. Otherwise invisibly returns this vector.

Examples

Run this code
# NOT RUN {
commit_site()
# }

Run the code above in your browser using DataLab