You can install and use rticles from CRAN as follows:
# Install from CRAN install.packages("rticles") # Or install development version from GitHub ::install_github("rstudio/rticles")devtools
We would recommend the development version of the package from GitHub, as it contains the most up-to-date versions along with several new templates.
If you are using RStudio, you can easily access the templates through
File -> New File -> R Markdown. This will open the dialog box where you can select from one of the available templates as shown in Figure 13.2.
If you are using the command line, you can use the
rmarkdown::draft() function, which requires you to specify a template using the journal short name, e.g.,
::draft( rmarkdown"MyJSSArticle.Rmd", template = "jss", package = "rticles" )