Skip to content

Commit

Permalink
Update R/get_latest_resource_id.R
Browse files Browse the repository at this point in the history
Co-authored-by: James McMahon <[email protected]>
  • Loading branch information
ross-hull and Moohan authored Jul 16, 2024
1 parent 7e8aa12 commit bfb7121
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/get_latest_resource_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ get_latest_resource_id <- function(dataset_name) {

# send the api request
query <- list("id" = dataset_name)
content <- try(
phs_GET("package_show", query),
silent = TRUE
)
content <- phs_GET("package_show", query)

# retrieve the resource id's from returned contect
all_ids <- purrr::map_chr(content$result$resources, ~ .x$id)

Check warning on line 62 in R/get_latest_resource_id.R

View workflow job for this annotation

GitHub Actions / lint

file=R/get_latest_resource_id.R,line=62,col=3,[object_usage_linter] local variable 'all_ids' assigned but may not be used
Expand Down

0 comments on commit bfb7121

Please sign in to comment.