Skip to content

Commit

Permalink
Merge pull request #82 from usa-npn/streaming-dl
Browse files Browse the repository at this point in the history
Replace `curl` streaming download of ndjson with `httr2`
  • Loading branch information
Aariq authored Jan 28, 2025
2 parents d3aae2d + b74c663 commit e89a4cd
Show file tree
Hide file tree
Showing 16 changed files with 432 additions and 284 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ cran-comments.md
notes/
^_pkgdown\.yml$
^pkgdown$
^CITATION.cff$

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ test-data
doc
Meta
docs
notes/*.tiff
8 changes: 3 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ BugReports: https://github.com/usa-npn/rnpn/issues
Depends:
R (>= 3.5.0)
Imports:
curl,
data.table (>= 1.9.6),
dplyr,
httr2,
jsonlite (>= 0.9.19),
httr2 (>= 1.1.0),
magrittr,
rlang,
tibble,
xml2
xml2,
yyjsonr
Suggests:
covr,
ggplot2,
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
* Documented a behavior of `npn_species_type()` where setting `kingdom` to `NULL` returns results for *both* `Plantae` and `Animalia`.
* Missing values returned by `npn_stations_by_state()` previously returned as the string `"emptyvalue"` are now returned as `NA`s.
* `rnpn` now has `dplyr` as a dependency instead of `plyr`
* `rnpn` now uses `httr2` instead of `httr`
* `rnpn` now uses `httr2` instead of `httr` and `curl` internally for functions that get observational data
* `...` is no longer used for functions that get observational data
* data download functions now return tibbles instead of `data.table` objects. `rnpn` no longer depends on `data.table`
* Missing values returned by download functions are now automatically converted from -9999 to `NA`
* Fixed a bug (#42) where returned value of `npn_get_agdd_point_data()` was inconsistent depending on whether it was cached or not.

# rnpn 1.2.9 (2024-08-18)
Expand Down
Loading

0 comments on commit e89a4cd

Please sign in to comment.