Executing all tabs in a project

rmarkdown
projects

#1

Is there any way to run all tabs within an R project?

In one case, I have 15 .Rmd files in on Rproject and want to update them all at once. Is there a command I can run which goes through each file (tabs in the project) and run the entire code?

Short summary of what im doing: have one file for each one of the 15 regions of my country in which I process different models, print the outputs and generates excel files used by others. Models in each tab is different so that is why there are 15 tabs.


#2

You could add another tab which runs each file in turn:
e.g. either:

source("file01.R")
source("file02.R")
...

or:

rmarkdown::render("file01.Rmd")
rmarkdown::render("file02.Rmd")
...