README.md

R markdown for IIASA Working Paper

Build Status License

Installation

To use markdown and the IIASA Working Paper template, please install the following packages:

  1. Install Latex packages according to your operating system, Linux, Windows, or MacOSX.

  2. Install the universal document converter pandoc. Please, follow the instructions according to the operating system.

  3. Open an R terminal and install the R package devtools

install.packages("devtools")
  1. Use the function devtools::install_github to install iiasaRmarkdown
devtools::install_github("iiasa/iiasaRmarkdown")

Using R markdown from RStudio

To use R Markdown from RStudio:

  1. Install the latest RStudio

  2. Open Rstudio and go to the menu File/New file/R Markdown...

  1. In the New R Markdown dialog select the tab From Template and the template name IIASA Working Paper. Name the project, select a Location, and click OK.

  1. To create the PDF click the knit button or Ctrl+Shift+K

Using R markdown outside of RStudio

  1. Install pandoc using the instructions for your platform.

  2. 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.

  1. 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/.



iiasa/iiasaRmarkdown documentation built on May 18, 2019, 3:41 a.m.