add_element: Assigns object to a report via a text path.

Description Usage Arguments

Description

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'

Usage

1
add_element(item, location)

Arguments

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.


christiantillich/syberiaReports documentation built on July 24, 2019, 1:56 p.m.