context_save | R Documentation |
Save a context
context_save(
path,
packages = NULL,
sources = NULL,
package_sources = NULL,
envir = NULL,
storage_type = NULL,
storage_args = NULL,
name = NULL,
root_id = NULL
)
path |
Path to save the context in |
packages |
Optional character vector of packages to save into
the context. Alternatively, can be a list with elements
|
sources |
Character vector of source files to read in. These should define functions and (perhaps) other "global" objects, but should not do any serious computation. |
package_sources |
Optional information about where to find
non-CRAN packages, created by |
envir |
The current environment. This is used to copy
local variables around. For |
storage_type |
Character vector indicating the storage type
to use. Options are |
storage_args |
Arguments passed through to the storage driver |
name |
An optional name for the context. This will be
printed with the context in some situations (such as
|
root_id |
Force a context root id. This is intended for
advanced use only. By setting the root id, two contexts
created with storage in different file locations ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.