# NOT RUN {
# single file
wflow_publish("analysis/file.Rmd", "Informative commit message")
# All tracked files that have been edited
wflow_publish(all = TRUE, message = "Informative commit message")
# A new file plus all tracked files that have been edited
wflow_publish("analysis/file.Rmd", "Informative commit message", all = TRUE)
# Multiple files
wflow_publish(c("analysis/file.Rmd", "analysis/another.Rmd"),
"Informative commit message")
# All R Markdown files that start with the pattern "new_"
wflow_publish("analysis/new_*Rmd", "Informative commit message")
# Republish all published files regardless of whether they have been
# modified. Useful for changing some universal aspect of the site,
# e.g. the theme specifid in _site.yml.
wflow_publish("analysis/_site.yml", "Informative commit message",
republish = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab