To use markdown and the IIASA Working Paper template, please install the following packages:
-
Install Latex packages according to your operating system, Linux, Windows, or MacOSX.
-
Install the universal document converter pandoc. Please, follow the instructions according to the operating system.
-
Open an R terminal and install the R package
devtools
install.packages("devtools")
- Use the function
devtools::install_github
to installiiasaRmarkdown
devtools::install_github("iiasa/iiasaRmarkdown")
To use R Markdown from RStudio:
-
Install the latest RStudio
-
Open Rstudio and go to the menu
File/New file/R Markdown...
- In the New R Markdown dialog select the tab
From Template
and the template nameIIASA Working Paper
. Name the project, select a Location, and click OK.
- To create the PDF click the knit button or
Ctrl+Shift+K
-
Install pandoc using the instructions for your platform.
-
Use the function
rmarkdown::draft
to create papers:
rmarkdown::draft(file = "MyWorkingPaper.Rmd", create_dir = TRUE,
template = "iiasawp", package = "iiasaRmarkdown")
The Rmd
file will be located in the folder ./MyWorkingPaper/MyWorkingPaper.Rmd
.
- Use
rmarkdown::render
to create the PDF
rmarkdown::render(input = "MyWorkingPaper/MyWorkingPaper.Rmd")
For more details see the package vignette and the following web tutorials http://rmarkdown.rstudio.com/index.html and https://guides.github.com/features/mastering-markdown/.