1 Introduction

This template demonstrates some of the basic markdown you’ll need to know to create a JSS article with pagedown (Xie and Lesur 2019).

1.1 Code formatting

You should use Pandoc’s markdown but you also can use \(\LaTeX\) commands:

  • Java or \(\proglang{Java}\)
  • plyr, plyr or \(\pkg{plyr}\)
  • print("abc") or \(\code{print("abc")}\)

2 R code

Can be inserted in regular R Markdown blocks.

R> x <- 1:10
R> x
 [1]  1  2  3  4  5  6  7  8  9 10

3 Render the document

If you use the option self_contained: false (see line #22 of this Rmd file), don’t click on the Knit button in RStudio. Use instead the xaringan (Xie 2018) RStudio add-in Infinite Moon Reader.

References

Xie Y (2018). Xaringan: Presentation Ninja. Retrieved from https://CRAN.R-project.org/package=xaringan

Xie Y, Lesur R (2019). Pagedown: Paginate the Html Output of R Markdown with Css for Print. Retrieved from https://github.com/rstudio/pagedown