You can install and use rticles from CRAN as follows:
install.packages("rticles")
If you wish to install the development version from GitHub (which often contains new article formats), you can do this:
devtools::install_github("rstudio/rticles")
The rticles package provides a suite of custom R Markdown LaTeX formats and templates for various formats, including:
-
ACM articles
-
ACS articles
-
AEA journal submissions
-
AMS articles
-
Biometrics articles
-
Bulletin de l'AMQ journal submissions
-
CTeX documents
-
Elsevier journal submissions
-
IEEE Transaction journal submissions
-
JSS articles
-
MDPI journal submissions
-
NNRAS journal submissions
-
PeerJ articles
-
Royal Society Open Science journal submissions
-
Sage journal submissions
-
Springer journal submissions
-
Statistics in Medicine journal submissions
-
Copernicus Publications journal submissions
-
The R Journal articles
Under the hood, LaTeX templates are used to ensure that documents conform precisely to submission standards. At the same time, composition and formatting can be done using lightweight markdown syntax, and R code and its output can be seamlessly included using knitr.
Using rticles requires the prerequisites described below. You can get most of these automatically by installing the latest release of RStudio (instructions for using rticles without RStudio are also provided).
To use rticles from RStudio:
-
Install the latest RStudio.
-
Install the rticles package:
install.packages("rticles")
-
Use the New R Markdown dialog to create an article from one of the templates:
-
Install pandoc using the instructions for your platform.
-
Install the rmarkdown and rticles packages:
install.packages("rmarkdown") devtools::install_github("rstudio/rticles")
-
Use the
rmarkdown::draft()
function to create articles:rmarkdown::draft("MyJSSArticle.Rmd", template = "jss_article", package = "rticles") rmarkdown::draft("MyRJournalArticle", template = "rjournal_article", package = "rticles")