Takes the object, forms the string report$[[object_path]], and then assigns the object to that location in the report. E.g. add_element(some_plot, 'plots$plot_a') will take the plot object and will perform 'report$plots$plot_a <- some_plot'
1 | add_element(item, location)
|
item |
any. The object you'd like to store. Commonly dataframes, urls to images, etc, but could be anything. |
location |
character. The location in the report you'd like the object to be stored in, as a text string. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.