Validate an Rxs tree

rxs_validation(
  rxsTree,
  stopOnFailure = FALSE,
  stopOnFailure_metadata = stopOnFailure,
  stopOnFailure_entities = stopOnFailure,
  rxsTemplateSpec = NULL,
  silent = metabefor::opts$get("silent")
)

Arguments

rxsTree

The Rxs tree.

stopOnFailure

Whether to throw an error when validation fails.

stopOnFailure_metadata

Whether to throw an error when validation fails, but only if validation fails for the metadata.

stopOnFailure_entities

Whether to throw an error when validation fails, but only if validation fails for the entity values.

rxsTemplateSpec

Optionally, the rxs template specification as it is typically included in rxs templates.

silent

Whether to be silent or chatty.

Value

Invisibly, the Rxs tree (which was altered in place, consistent with the reference semantics employed by data.tree::Node() - so you can just discard the result).