if (FALSE) {
# extract from span name
extract_output_id_from_span("output:plot1", NULL) # returns "plot1"
# extract from attributes
attrs <- list(list(key = "output_id", value = list(stringValue = "table1")))
extract_output_id_from_span("output", attrs) # returns "table1"
}
Run the code above in your browser using DataLab