Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jul 15, 2024
1 parent be65d9e commit 34e2687
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions R/cromwellCall.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ cromwell_call <- function(workflow_id, url = cw_url(), token = NULL) {
url = make_url(url, "api/workflows/v1", workflow_id, "metadata"),
token = token
) |>
req_url_query(expandSubWorkflows = "true") |>
http_perform()
req_url_query(expandSubWorkflows = "true") |>
http_perform()
# if the response is a character vector, then return it and stop
if (is.character(crommetadata)) stop(crommetadata)
# if the response is a list, meaning it has some content, continue
Expand Down
4 changes: 2 additions & 2 deletions R/cromwellFailures.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ cromwell_failures <- function(workflow_id, url = cw_url(), token = NULL) {
url = make_url(url, "api/workflows/v1", workflow_id, "metadata"),
token = token
) |>
req_url_query(includeKey = "failures", includeKey = "jobId") |>
http_perform()
req_url_query(includeKey = "failures", includeKey = "jobId") |>
http_perform()
cromwell_failures_process(response, workflow_id)
}

Expand Down
4 changes: 3 additions & 1 deletion R/cromwellOutputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ cromwell_outputs_query <- function(workflow_id, url = cw_url(), token = NULL) {

#' @autoglobal
cromwell_outputs_process <- function(resp, workflow_id) {
if (length(resp$outputs) == 0) return(dplyr::tibble())
if (length(resp$outputs) == 0) {
return(dplyr::tibble())
}
# grab only the outputs list and unlist into a dataframe
df <- purrr::map_dfr(resp$outputs, function(x) {
z <- dplyr::tibble("pathToOutput" = unlist(x))
Expand Down
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ lst_upload_file <- function(path) {
browse <- function(url) {
if (interactive()) {
utils::browseURL(url)
}
else {
} else {
message("Please point your browser to the following url: ")
message(url)
}
Expand Down

0 comments on commit 34e2687

Please sign in to comment.