Skip to content

Commit

Permalink
Merge pull request #82 from ropensci/411
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Feb 2, 2024
2 parents 578d0ac + 543e2bb commit f1271c1
Show file tree
Hide file tree
Showing 40 changed files with 897 additions and 1,962 deletions.
26 changes: 19 additions & 7 deletions DESCRIPTION
@@ -1,7 +1,7 @@
Package: nasapower
Type: Package
Title: NASA POWER API Client
Version: 4.1.0
Version: 4.2.0
Authors@R:
c(person(given = "Adam H.",
family = "Sparks",
Expand Down Expand Up @@ -53,7 +53,19 @@ Authors@R:
`file` argument of `vroom()` must use `I()` for literal data as
of vroom 1.5.0.', see
<https://github.com/ropensci/nasapower/pull/67>.")),
person(given = "Western Australia Agriculture Authority (WAAA)",
person(given = "Aleksandar",
family = "Blagotić",
role = "ctb",
email = "alex@rapporter.net",
comment = c("Author of the CRAN package 'rapportools', from which
the '.is_boolean()' was taken.")),
person(given = "Gergely",
family = "Daróczi",
role = "ctb",
email = "daroczig@rapporter.net",
comment = c("Author of the CRAN package 'rapportools', from which
the '.is_boolean()' was taken.")),
person(given = "Curtin University",
role = "cph",
comment =
c("Supported the development of 'nasapower' through Adam H.
Expand All @@ -79,18 +91,18 @@ Imports:
readr,
rlang,
tibble (>= 3.0.2)
RoxygenNote: 7.3.0
Encoding: UTF-8
Language: en-US
NeedsCompilation: no
Repository: CRAN
Suggests:
knitr,
purrr,
rmarkdown,
spelling,
testthat (>= 3.0.0),
vcr (>= 0.6.0)
RoxygenNote: 7.3.1
Encoding: UTF-8
Language: en-US
NeedsCompilation: no
Repository: CRAN
VignetteBuilder: knitr
X-schema.org-applicationCategory: Tools
X-schema.org-keywords: NASA, meteorological-data, weather, global, weather,
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Expand Up @@ -2,4 +2,6 @@

S3method(print,POWER.Info)
export(get_power)
export(query_groupings)
export(query_parameters)
export(query_surfaces)
22 changes: 22 additions & 0 deletions NEWS.md
@@ -1,3 +1,25 @@
# nasapower 4.2.0

## Minor Changes

* Two new functions are added:
* `query_surfaces()`: Query the POWER API for Detailed Information on Wind Type Surfaces

* `query_groupings()`: Query the POWER API for Detailed Information on Available Parameter Groupings

* `query_parameters` now allows you to retrieve rich metadata for the parameters.

* Error, warning and other informational messages are now all formatted with {cli} for more attractive and informative messages.

* The username passed along to the POWER API is now "nasapower4r" to support other packages built on {nasapower} that could use {vcr} in tests.
Previously the user agent string took the version of {nasapower} and appended it, _e.g._, "nasapower410" for v4.1.0.
Doing so breaks tests in packages relying on {nasapower} due to incompatibilities in cassettes, while not affecting functionality.

## Bug fixes

* Fixes a bug that allowed users to send requests to the API for hourly data over a region.
The API does not support this and this client now provides a user-friendly error when it is attempted.

# nasapower 4.1.0

## Bug fixes
Expand Down

0 comments on commit f1271c1

Please sign in to comment.