You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I select data thanks to get_sites() and then get_datasets(), I effectively get what I want: data for the n sites which respect my criteria. But then, when I run get_downloads() based on the same set of sites, I get n identical lists containing samples for the same site.
For instance if I run the following chunk, directly took from the page neotoma2_R_pack_doc, I get samples for the right number of sites (7) but I get 7 times the data for the same site (Lake Valencia):
brazil <- '{"type": "Polygon",
"coordinates": [[
[-73.125, -9.102],
[-56.953, -33.138],
[-36.563, -7.711],
[-68.203, 13.923],
[-73.125, -9.102]
]]}'
# We can make the geojson a spatial object if we want to use the
# functionality of the `sf` package.
brazil_sf <- geojsonsf::geojson_sf(brazil)
brazil_records <- get_datasets(loc = brazil_sf) %>%
neotoma2::filter(datasettype == "pollen" & age_range_young <= 1000 & age_range_old >= 10000) %>%
get_downloads(verbose = FALSE)
With get_sites() or get_datasets(), I obtain in my environment a list of lists structured this way:
-sites
-[[1]]
-[[2]]
-[[3]]
etc.
While with get_downloads(), I get:
-sites
-site
-site
-site
etc.
The text was updated successfully, but these errors were encountered:
Hello @sedv8808,
Thank you for your answer. Unfortunately I still meet the same issue updating "neotoma2". I am using R 4.3.3 (2024-02-29 ucrt) and the latest version of neotoma2 (1.0.3).
I am working from China (Beijing). Initially, I had to deal with some problems to retrieve data from "neotoma2" and still have to work in particular conditions (using VPN, specific Wi-Fi and modified R profile on my project) but as the other functions of the "neotoma2" R package are working well, I don't understand why get_downloads is still not working.
Any suggestion is really welcome.
When I select data thanks to get_sites() and then get_datasets(), I effectively get what I want: data for the n sites which respect my criteria. But then, when I run get_downloads() based on the same set of sites, I get n identical lists containing samples for the same site.
For instance if I run the following chunk, directly took from the page neotoma2_R_pack_doc, I get samples for the right number of sites (7) but I get 7 times the data for the same site (Lake Valencia):
With get_sites() or get_datasets(), I obtain in my environment a list of lists structured this way:
-sites
etc.
While with get_downloads(), I get:
-sites
etc.
The text was updated successfully, but these errors were encountered: