Skip to content

Commit

Permalink
Match args (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks authored Dec 5, 2023
1 parent 58f3be7 commit 4edc632
Show file tree
Hide file tree
Showing 26 changed files with 359 additions and 372 deletions.
10 changes: 7 additions & 3 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.0.12
Version: 4.1.0
Authors@R:
c(person(given = "Adam H.",
family = "Sparks",
Expand Down Expand Up @@ -62,7 +62,7 @@ URL: https://docs.ropensci.org/nasapower/
BugReports: https://github.com/ropensci/nasapower/issues
Description: An API client for NASA POWER global meteorology, surface solar
energy and climatology data API. POWER (Prediction Of Worldwide Energy
Resource) data are freely available for download with varying spatial
Resources) data are freely available for download with varying spatial
resolutions dependent on the original data and with several temporal
resolutions depending on the POWER parameter and community. This work is
funded through the NASA Earth Science Directorate Applied Science Program.
Expand All @@ -72,10 +72,12 @@ Depends:
R (>= 3.5.0)
License: MIT + file LICENSE
Imports:
cli,
crul,
lubridate,
jsonlite,
readr,
rlang,
tibble (>= 3.0.2)
RoxygenNote: 7.2.3
Encoding: UTF-8
Expand All @@ -87,7 +89,7 @@ Suggests:
purrr,
rmarkdown,
spelling,
testthat,
testthat (>= 3.0.0),
vcr (>= 0.6.0)
VignetteBuilder: knitr
X-schema.org-applicationCategory: Tools
Expand All @@ -96,3 +98,5 @@ X-schema.org-keywords: NASA, meteorological-data, weather, global, weather,
data-access, climate-data
X-schema.org-isPartOf: https://ropensci.org
Roxygen: list(markdown = TRUE)
Config/testthat/edition: 3
Config/testthat/parallel: true
24 changes: 21 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# nasapower (development version)
# nasapower 4.1.0

## Bug fixes

* Fix formula in documentation that didn't display properly in HTML.

* Fix non-functional link in documentation.

* Fix code coverage badging.

## Minor changes

* Use {cli} and {rlang} for clear messages for end users.

* Use argument matching for function arguments where practical.

* The `temporal_api` argument of `get_power()` now defaults to "daily", previously it had no default value.

* The `temporal_average` argument for `get_power()` has now been removed after being deprecated and issuing a message to users to use `temporal_api` instead since release 4.0.0.

# nasapower 4.0.11

Expand All @@ -16,9 +34,9 @@

* Reorder README to stress that this is not the data source and should not be cited as such.

* Tidy up minor bits-n-pieces in documentation to make it nicer, *e.g.* grammar corrections, using `\dQuote{}` rather than """ in ROxygen.
* Tidy up minor bits-n-pieces in documentation to make it nicer, *e.g.*, grammar corrections, using `\dQuote{}` rather than """ in ROxygen.

* Uses `sprintf` rather than `paste` where possible.
* Uses `sprintf()` rather than `paste()` where possible.

* Update {vcr} configuration and infrastructure to use .json cassettes.

Expand Down
Loading

0 comments on commit 4edc632

Please sign in to comment.