knitr::opts_chunk$set(echo = TRUE)
This file is processed second in the
config.yml file. It therefore has access to the data objects
subsetCars.Rmd, the file that is processed first in the
In order to read previously processed objects, we use the
datapackager_object_read() API from
library(DataPackageR) cars_over_20 = datapackager_object_read("cars_over_20") print(cars_over_20)
This API reads from an environment named
subsetCars and any other previously built data set objects. It is passed into the render environment of
extra.rmd by DataPackageR at the
This file will add the pressure data set to the example.
data(pressure) pressure <- pressure # need to do an assignment plot(pressure)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.