Fast but transient environment driver. This driver saves objects in a local R environment, without serialisation. This makes lookup fast but it cannot be saved across sesssions. The environment storr can be made persistent by saving it out as a file storr though.
1 2 3
The environment to point the storr at. The default
creates an new empty environment which is generally the right
choice. However, if you want multiple environment storrs
pointing at the same environment then pass the
Default namespace (see
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Create an environment and stick some random numbers into it: st <- storr_environment() st$set("foo", runif(10)) st$get("foo") # To make this environment persistent we can save it to disk: path <- tempfile() st2 <- st$archive_export(path) # st2 is now a storr_rds (see ?storr_rds), and will persist across # sessions. # or export to a new list: lis <- st$export(list()) lis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.