write_variables: Write regressors file

View source: R/utils.R

write_variablesR Documentation

Write regressors file

Description

Write regressors file

Usage

write_variables(vars, file)

Arguments

vars

A named list of ts objects.

file

Path to the output XML file.

Value

No return value (NULL returned invisibly). This function writes variables to file for use in JD+.

Examples



# 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
variable_path <- tempfile(fileext = ".xml")
write_variables(vars, file = variable_path)



rjd3workspace documentation built on July 17, 2026, 9:07 a.m.