dbca-wa / wastdr

An R Client for the WA Sea Turtles and Strandings Database WAStD
https://dbca-wa.github.io/wastdr/
Other
3 stars 0 forks source link

Fix wastd_parse #1

Closed florianm closed 4 years ago

florianm commented 4 years ago
 nest_excavation_records <- wastdr::wastd_GET("turtle-nest-excavations")
[wastdr::get_wastd] fetched https://tsc.dbca.wa.gov.au/api/1/turtle-nest-excavations/?format=json
[wastdr::get_wastd] fetching https://tsc.dbca.wa.gov.au/api/1/turtle-nest-excavations/?format=json&limit=100&offset=100...
[wastdr::get_wastd] fetching https://tsc.dbca.wa.gov.au/api/1/turtle-nest-excavations/?format=json&limit=100&offset=200...
[wastdr::get_wastd] done fetching all data.
>   nest_excavations <- nest_excavation_records %>%
+     wastdr::wastd_parse() %>%
+     add_calendar_date_awst()
Error in eval(lhs, parent, parent) : object 'datetime' not found
In addition: Warning message:
In if (names(out) == c("type", "geometry", "properties")) { :
  the condition has length > 1 and only the first element will be used