geysertimes / geysertimes-r-package

R package for accessing and analyzing the GeyserTimes database
Other
2 stars 4 forks source link

try-catch when downloading data #8

Closed spkaluzny closed 4 years ago

spkaluzny commented 4 years ago

Make sure the package follows this CRAN policy when downloading the geyser data:

Packages which use Internet resources should fail gracefully with an informative message if the resource is not available (and not give a check warning nor error)

spkaluzny commented 4 years ago

The package now uses trydownload (for eruptions) and try (for geysers with jsonlite::fromJSON).