To use rticles from RStudio, you can 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:
If you are not using RStudio, you'll also need to install Pandoc following these instructions. Then, use the rmarkdown::draft()
function to create articles:
rmarkdown::draft(
"MyJSSArticle.Rmd", template = "jss", package = "rticles"
)
rmarkdown::draft(
"MyRJournalArticle", template = "rjournal", package = "rticles"
)
This will create a folder containing a Rmd file using the corresponding output format and all the assets required by this format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.