Closed boshek closed 1 year ago
Some helper function like this would be ideal:
conbench_body_json <- function(resp, simplifyVector = simplifyVector, flatten = flatten, ...) {
resp <- resp_body_json(resp, simplifyVector = simplifyVector, flatten = flatten, ...)
if (length(resp) == 0) {
return(as.data.frame(resp))
} else {
resp
}
}
Or a tibble.
When a run exists but no benchmarks are population an empty list is returned. We should coerce that to an empty data.frame (or tibble).