The faodoc package includes a set of R Markdown templates that enable authoring of R related publications commonly produced within FAO. Available templates include:
To use faodoc from RStudio:
-
Install the latest RStudio.
-
Install the faodoc package:
devtools::install_github("UNFAOstatistics/faodoc")
- Use the New R Markdown dialog to create an article from one of the templates:
-
Install pandoc using the instructions for your platform.
-
Install the rmarkdown and faodoc packages:
devtools::install_github(c("rstudio/rmarkdown", "UNFAOstatistics/faodoc"))
- Use the
rmarkdown::draft
function to create articles:
rmarkdown::draft("MyAbstract.Rmd", template = "fao_plain", package = "faodoc")