
Load Child Resources
loadChildResources.RdLoads all child resources for a given resource identifier. Child resources can be folders, steps, workflows and analysis trees, but also the elements of a step's inventory. Results are cached for performance.
Usage
loadChildResources(ident, from = pwd())Arguments
- ident
The resource identifier - can be a resource ID, entity ID, entity version ID, or path. Can also be a list of identifiers.
- from
Reference point for relative paths. Defaults to current working directory via
pwd.
Value
A list with class "improveResource" containing:
type- Type indicator ("child")resourceId- Unique resource identifierentityId- Entity identifierentityVersionId- Entity version identifierpath- Full resource pathname- Resource namedata- A list containing data frames of child resources. Each data frame contains columns with resource metadata:resourceId,resourceVersionId- Resource identifiersnodeType- Type of resource (e.g., "Step", "Analysis Tree", "File", "Folder")name,path- Resource name and full pathparentId- Parent resource identifierdeleted- Logical indicating deletion statusentityId,entityVersionId- Entity identifiersfullEntityId,fullEntityVersionId- Full entity URLsrevisionId- Revision identifiercreatedByName,createdById- Creator informationcreatedAt,createdAtDate- Creation timestamp (milliseconds and POSIXct)lastModifiedByName,lastModifiedById- Last modifier informationlastModifiedOn,lastModifiedOnDate- Last modification timestampfileSize- File size in byteshasChildren,hasChildrenIncludingFiles- Child resource indicatorsoutdatedLink- Logical indicating outdated link statusfinishedStatus- Execution status (e.g., "unfinished")workingFile- Logical indicating working file status
Additional fields for specific node types:
For Steps:
keyStep,baseModel,fullModel,finalModel,referenceModel,ownedById,ownedByNameFor Files:
status,fileHash
Dates are converted to POSIXct format via convertImproveTimestampToPosix.
See also
unloadChildResources to clear cache,
updateChildResources to refresh from server,
loadChildSteps for step-specific children
Examples
if (FALSE) { # \dontrun{
# Load children of current step
children <- loadChildResources(pwd())
children$data[[1]]
# Load children by path
children <- loadChildResources("/Projects/MyWorkflow")
} # }