INBOmd contains templates to generate several types of documents with the corporate identity of INBO or the Flemish goverment. The current package has following Rmarkdown templates:
The templates are available in RStudio using File
> New file
> R Markdown
> From template
.
More details, including instructions for installation and usage are available at the INBOmd website.
INBOmd requires a working installation of XeLaTeX. We highly recommend to use the TinyTeX. Close all open R sessions and start a fresh R session. Execute the commands below. This will install TinyTeX on your machine. No admin rights are required. Although TinyTeX is a lightweight installation, it still is several 100 MB large.
update.packages(ask = FALSE, checkBuilt = TRUE)
if (!"tinytex" %in% rownames(installed.packages())) {
install.packages("tinytex")
}
if (!tinytex:::is_tinytex()) {
tinytex::install_tinytex()
}
Once TinyTeX is installed, you need to restart RStudio. Then you can proceed with the installation of INBOmd
.
if (!"remotes" %in% rownames(installed.packages())) {
install.packages("remotes")
}
remotes::install_github("inbo/INBOmd", dependencies = TRUE)
tinytex::tlmgr_install(c(
'inconsolata', 'times', 'tex', 'helvetic', 'dvips'
))
tinytex::tlmgr_conf(
c("auxtrees", "add", system.file("local_tex", package = "INBOmd"))
)
tinytex::tlmgr_install(c("hyphen-dutch", "hyphen-french"))
Make your system fonts available in R
if (!"extrafont" %in% rownames(installed.packages())) {
install.packages("extrafont")
}
extrafont::font_import()