if (FALSE) {
# rename a single file
wflow_rename("analysis/file.Rmd", "analysis/new.Rmd", "rename old analysis.")
# rename multiple files
wflow_rename(c("analysis/file.Rmd", "output/small-data.txt"),
c("analysis/new.Rmd", "output/new-data.txt"),
"rename old analysis and its associated data.")
}
Run the code above in your browser using DataLab