Can anyone point me to examples of using an R Markdown file sourced as a function? I can create a function with Openxlsx statements, for example, and use purrr to iterate through a list of tibbles, producing an Excel file with multiple worksheets. What I want is to produce multiple stand-alone PDFs of tables and graphs by iterating through the list of tibbles.
map(LOT, source(R Markdown.rmd))
Or is there a better way to accomplish what I want?