next-game-solutions / geckor

An R client for the public CoinGecko API
https://next-game-solutions.github.io/geckor/
Other
26 stars 9 forks source link

`coin_history_range()` fails due to missing values in the retrieved data #39

Closed ranalytics closed 3 years ago

ranalytics commented 3 years ago

When running

bitcoin <- coin_history_range(coin_id = "bitcoin",
                              vs_currency = "usd",
                              from = as.POSIXct("2016-01-01 00:00:00", tz = "UTC"),
                              to = as.POSIXct("2019-08-24 00:00:00", tz = "UTC"))

an error occurs:

Error: Can't recycle `..1` (size 1332) to match `..3` (size 1331).

This is due to a missing value in the retrieved data, a situation that is not treated gracefully and needs to be fixed.