fileresources | R Documentation |
Retrieve file paths to package resources
file_reference_docx() file_syntax_definition() file_solarized_light_theme() file_syntax_test() file_code_block()
file_reference_docx()
returns the path to the reference docx file
used by this package. file_syntax_definition()
returns the path to the
XML file specifying how pandoc should highlight the code in the document.
file_solarized_light_theme()
returns the path to the .theme file used by
this package. file_syntax_test()
returns the path to the RMarkdown file
used by demo_document()
. file_code_block()
returns a minimal .Rmd file
with a single code block for small illustrations.
the reference docx is a modified version of the own built into pandoc by John MacFarlane. The syntax definition is a modified version of the one by the KDE developers. I used the code here: https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/r.xml
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.