Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.2.0 #82

Merged
merged 43 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f0329d8
check pars in query_parameters() and better error msgs
adamhsparks Jan 25, 2024
e5c74cd
Update {cli} responses to end-users
adamhsparks Jan 25, 2024
04c4f20
Update cli messages and work on tests
adamhsparks Jan 28, 2024
e079992
Update cli messages and work on tests
adamhsparks Jan 28, 2024
8277c8b
wrangle query_parameters() a bit more to be done
adamhsparks Jan 29, 2024
c5fa959
more improvements to error messages and bug fixes
adamhsparks Jan 30, 2024
c821128
move tests to proper function tests
adamhsparks Jan 30, 2024
0927a7a
Use lowercase, move check from shared fn to just be in get_power()
adamhsparks Jan 30, 2024
1fa7ec4
Passing all tests now
adamhsparks Jan 30, 2024
560785f
add metadata retrieval and check for Boolean values
adamhsparks Jan 31, 2024
e3a3625
Update documentation and correct DESCRIPTION file format
adamhsparks Jan 31, 2024
cf33460
Add query_groupings()
adamhsparks Jan 31, 2024
b53989e
move .is_boolean() to internal functions since it is now shared
adamhsparks Jan 31, 2024
2e58fe7
remove encoding string val and add missing "."
adamhsparks Jan 31, 2024
9d1ca8f
move surface matching to internal function since now shared
adamhsparks Jan 31, 2024
9f8aecd
add query_surfaces()
adamhsparks Jan 31, 2024
3d1a8c2
Update documentation
adamhsparks Jan 31, 2024
db1dc95
Update internal list of parameters available
adamhsparks Jan 31, 2024
ebacde3
Use v4.2.0 and update NEWS.md
adamhsparks Jan 31, 2024
2ea7112
Update {vcr} fixtures
adamhsparks Jan 31, 2024
e8a9192
Use
adamhsparks Jan 31, 2024
1ef854e
Remove unused function
adamhsparks Jan 31, 2024
1f63f89
Revert "Remove unused function"
adamhsparks Jan 31, 2024
a6af67e
Use {vcr} for groupings end-point
adamhsparks Jan 31, 2024
e404b72
tidy up tests and add for query_surfaces()
adamhsparks Jan 31, 2024
aab3b31
Better tests for >97% coverage now
adamhsparks Jan 31, 2024
c069b9d
skip tests on CRAN
adamhsparks Feb 1, 2024
7c9d98d
Update user agent string for POWER API to 'nasapower4r'
adamhsparks Feb 1, 2024
939a289
Update NEWS.md to reflect changes in user agent string
adamhsparks Feb 1, 2024
a8b0ffb
Update NEWS.md with changes for new release
adamhsparks Feb 1, 2024
c345e6b
Update codemeta.json
adamhsparks Feb 1, 2024
b83c2d5
Update revdep checks
adamhsparks Feb 1, 2024
79f9e71
update cran-comments
adamhsparks Feb 1, 2024
f1d6d5b
Add missing ","
adamhsparks Feb 1, 2024
c413110
Redocument to use proper "re" for community
adamhsparks Feb 1, 2024
eea8e47
Update vignette to match current functionality
adamhsparks Feb 1, 2024
d0c04c4
Update WORDLIST
adamhsparks Feb 1, 2024
81447a6
Update codemeta.json
adamhsparks Feb 1, 2024
c15402b
Remove "x" from informational message, not a stop
adamhsparks Feb 1, 2024
360c881
update codemeta.json
adamhsparks Feb 1, 2024
ef44404
update cran-comments.md
adamhsparks Feb 1, 2024
83d44e6
add CRAN-SUBMISSION
adamhsparks Feb 2, 2024
543e2bb
Delete CRAN-SUBMISSION
adamhsparks Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]",
comment = c("Author of the CRAN package 'rapportools', from which
the '.is_boolean()' was taken.")),
person(given = "Gergely",
family = "Daróczi",
role = "ctb",
email = "[email protected]",
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading