This package adds templates to the RStudio New > R Markdown...
button.
It can be installed with:
if(!require("remotes")) install.packages("remotes")
remotes::install_github("biometryhub/BHTemplates")
There is now a function to create reports from the template directly from the R console. Simply use new_report()
with filename
and type
arguments. Check documentation for more details.