Open simonrolph opened 2 years ago
# NOT IN USE:
#new approach using: https://api.inaturalist.org/v1/docs/#!/Observations/get_observations
# res = GET("https://api.inaturalist.org/v1/observations",
# query = list(user_id = recorded_by[2],
# per_page = 5000,
# search_on = "place",
# q = "Spain"))
#
# data = fromJSON(rawToChar(res$content))
# data$results %>% nrow()
# saveRDS(user_observations,paste0("2_Generating_iNat_RM_Baseline/data/user_obvs/observations_",usernames[i],".rds"))
Possibly use Use rinat::get_inat_obs rather than hacked get_inat_obs_user in case that fixes the non-spain records error. Or just write a function that uses the api