View source: R/form_processing.R
formInputContext | R Documentation |
Given mode
(which is expected to be set via knitr
runtime parameters
so it doesn't need to be passed in), this takes care of logic for
reading in the correct input dependency and any additional processing for said input.
If mode
== "html", we expect to read a config_file
.
If mode
== "latex", we expect to read JSON data and process it to correct format.
formInputContext( config_file = NULL, data = NULL, mode = knitr::opts_knit$get("rmarkdown.pandoc.to") )
config_file |
Path to YAML config file |
data |
Path to JSON data. |
mode |
The render mode. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.