Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
truenomad committed Apr 30, 2024
1 parent 1103f7a commit ecf9bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/get_ona.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ generate_urls <- function(full_data, file_path,
}
})

return(urls)
urls
}

#' Call multiple URLs
Expand Down Expand Up @@ -434,7 +434,8 @@ call_urls <- function(urls, api_token) {
# Combine all the results into one tibble
combined_data <- dplyr::bind_rows(results)
gc() # Clean up memory
return(combined_data)

combined_data
}

#' Update ONA Data
Expand Down

0 comments on commit ecf9bec

Please sign in to comment.