Skip to content

Commit

Permalink
Fix order: was forgetting to construct homes_url first
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed May 6, 2023
1 parent 82f45ce commit 6421213
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/project_homes.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ project_homes <-
}
}

## Construct the URL for the homes_index file
homes_url <-
paste(recount3_url, organism, "homes_index", sep = "/")

url_failed <- tryCatch(
http_error(homes_url),
error = function(e) { return (TRUE)}
)


## Construct the URL for the homes_index file
homes_url <-
paste(recount3_url, organism, "homes_index", sep = "/")
if (!url_failed) {
homes_from_url <- readLines(homes_url)

Expand Down

0 comments on commit 6421213

Please sign in to comment.