
Get multiple units with resources
get_units.RdThis function returns the unit information for multiple units.
Current Studio Lite versions store item-variable links as
sourceVariableId/sourceVariableUuid; eatPrepTBA returns them as
variable_id and variable_ref. Older locally stored metadata with
variableId/variableReadOnlyId is still read for backward compatibility.
Retired internal fields such as position, locked, and weighting are
ignored. Use item_no for the row order in the item list, item_order for
the Studio/spec order value, and call
get_units(..., unit_definition = TRUE) when page locations via
variable_pages are needed.
Usage
get_units(workspace, units = NULL, metadata = TRUE, unit_definition = FALSE)
# S4 method for class 'WorkspaceStudio'
get_units(workspace, units = NULL, metadata = TRUE, unit_definition = FALSE)Arguments
- workspace
Workspace. Workspace information necessary to retrieve unit information and resources from the API.
- units
Tibble. Recently queried units of this workspace that should be updated. Please note that units that are no longer in the workspace will automatically be deleted by the procedure.
- metadata
Logical. Should the metadata be added? Defaults to
TRUE.- unit_definition
Logical. Should the unit definition be added? Defaults to
FALSE. This function also infers the pages of the variables from the unit definition.