R/workflow_utils.R

Defines functions is_pipeline_variable

# Check if the variable is a pipeline variable
# Args:
#   var (object): The variable to be verified.
# Returns:
#   bool: True if it is, False otherwise.
is_pipeline_variable = function(var){

  # Currently Expression is on top of all kinds of pipeline variables
  # as well as PipelineExperimentConfigProperty and PropertyFile
  # TODO: We should deprecate the Expression and replace it with PipelineVariable
  return(inherits(var, "Expression"))
}
DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.