weecology / portalr

A collection of functions to summarize the Portal Data
https://weecology.github.io/portalr/
Other
11 stars 12 forks source link

Error in tests: zenodo #298

Closed olivroy closed 1 month ago

olivroy commented 2 months ago

I couldn't figure out how to fix the 1 test failure. However, I identified the problem:

I know that it is here

portal_data_path <- tempdir()
download_observations(portal_data_path, source = "zenodo", timeout = 300)
#> don't know how to convert pub_date to Date

Because pub_date can't be found. Maybe pub_date can be retrieved with the modified variable that seems to be in contents?

Set a break point around line 56 in R/download_data.R to debug.

It seems that the zenodo source doesn't have the same format as the other source?

I'd also be happy to send these in smaller chunks if that's better

ethanwhite commented 1 month ago

Fix portalr download bug