# 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(Sys.glob("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.
wflow_publish(republish = TRUE, message = "Informative commit message")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab