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")
devtools::install_github
to install iiasaRmarkdown
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...
From Template
and the template name IIASA Working Paper
. Name the project, select a Location, and click OK. 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
.
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/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.