write_variables | R Documentation |
Write regressors file
write_variables(vars, file)
vars |
A named list of |
file |
Path to the output XML file. |
No return value (NULL
returned invisibly). This function writes variables to file for use in JD+.
# Load a Workspace
file <- system.file("workspaces", "workspace_test.xml", package = "rjd3workspace")
jws <- jws_open(file)
# Get context
my_context <- get_context(jws)
vars <- my_context$variables[[1L]]
# Writing the regressors in a xml file
write_variables(vars, file = normalizePath("tmp.xml", mustWork = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.