Skip to content

Commit

Permalink
Merge pull request #210 from pascal-sauer/master
Browse files Browse the repository at this point in the history
defer toolAggregate warning until July 1st
  • Loading branch information
pascal-sauer authored Jun 6, 2024
2 parents c4ba674 + eda3f76 commit 026c86e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '61875180'
ValidationKey: '61926200'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'madrat: May All Data be Reproducible and Transparent (MADRaT) *'
version: 3.11.4
date-released: '2024-05-27'
version: 3.11.5
date-released: '2024-06-06'
abstract: Provides a framework which should improve reproducibility and transparency
in data processing. It provides functionality such as automatic meta data creation
and management, rudimentary quality management, data caching, work-flow management
Expand Down
37 changes: 22 additions & 15 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
Type: Package
Package: madrat
Title: May All Data be Reproducible and Transparent (MADRaT) *
Version: 3.11.4
Date: 2024-05-27
Version: 3.11.5
Date: 2024-06-06
Authors@R: c(
person("Jan Philipp", "Dietrich", , "[email protected]",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research", ORCID = "0000-0002-4309-6431"), role = c("aut", "cre")),
person("Lavinia", "Baumstark", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Stephen", "Wirth", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Jan Philipp", "Dietrich", , "[email protected]", role = c("aut", "cre"),
comment = c(affiliation = "Potsdam Institute for Climate Impact Research", ORCID = "0000-0002-4309-6431")),
person("Lavinia", "Baumstark", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Stephen", "Wirth", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Anastasis", "Giannousakis", , "[email protected]", role = "aut"),
person("Renato", "Rodrigues", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Benjamin Leon", "Bodirsky", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Debbora", "Leip", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Renato", "Rodrigues", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Benjamin Leon", "Bodirsky", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Debbora", "Leip", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Ulrich", "Kreidenweis", , "[email protected]", role = "aut"),
person("David", "Klein", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut"),
person("Pascal", "Sauer", , "[email protected]", comment = c(affiliation = "Potsdam Institute for Climate Impact Research"), role = "aut")
person("David", "Klein", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research")),
person("Pascal", "Sauer", , "[email protected]", role = "aut",
comment = c(affiliation = "Potsdam Institute for Climate Impact Research"))
)
Description: Provides a framework which should improve reproducibility and
transparency in data processing. It provides functionality such as
Expand Down Expand Up @@ -47,16 +54,16 @@ Imports:
Suggests:
covr,
ggplot2,
graphics,
grDevices,
knitr,
rmarkdown,
terra,
testthat,
tibble,
grDevices,
graphics
tibble
VignetteBuilder:
knitr
Config/Keywords: tool
Encoding: UTF-8
LazyData: no
RoxygenNote: 7.3.1
Config/Keywords: tool
2 changes: 1 addition & 1 deletion R/toolAggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ toolAggregate <- function(x, rel, weight = NULL, from = NULL, to = NULL, dim = 1
msg <- paste0("Weight sum is 0, so cannot normalize and will return 0 for some ",
"aggregation targets. This changes the total sum of the magpie object! ",
'If this is really intended set zeroWeight = "allow".')
if (Sys.Date() < "2024-06-01") {
if (Sys.Date() < "2024-07-01") {
message(msg)
} else {
warning(msg)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# May All Data be Reproducible and Transparent (MADRaT) *

R package **madrat**, version **3.11.4**
R package **madrat**, version **3.11.5**

[![CRAN status](https://www.r-pkg.org/badges/version/madrat)](https://cran.r-project.org/package=madrat) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1115490.svg)](https://doi.org/10.5281/zenodo.1115490) [![R build status](https://github.com/pik-piam/madrat/workflows/check/badge.svg)](https://github.com/pik-piam/madrat/actions) [![codecov](https://codecov.io/gh/pik-piam/madrat/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/madrat) [![r-universe](https://pik-piam.r-universe.dev/badges/madrat)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -55,7 +55,7 @@ In case of questions / problems please contact Jan Philipp Dietrich <dietrich@pi

To cite package **madrat** in publications use:

Dietrich J, Baumstark L, Wirth S, Giannousakis A, Rodrigues R, Bodirsky B, Leip D, Kreidenweis U, Klein D, Sauer P (2024). _madrat: May All Data be Reproducible and Transparent (MADRaT)_. doi:10.5281/zenodo.1115490 <https://doi.org/10.5281/zenodo.1115490>, R package version 3.11.4, <https://github.com/pik-piam/madrat>.
Dietrich J, Baumstark L, Wirth S, Giannousakis A, Rodrigues R, Bodirsky B, Leip D, Kreidenweis U, Klein D, Sauer P (2024). _madrat: May All Data be Reproducible and Transparent (MADRaT)_. doi:10.5281/zenodo.1115490 <https://doi.org/10.5281/zenodo.1115490>, R package version 3.11.5, <https://github.com/pik-piam/madrat>.

A BibTeX entry for LaTeX users is

Expand All @@ -64,7 +64,7 @@ A BibTeX entry for LaTeX users is
title = {madrat: May All Data be Reproducible and Transparent (MADRaT)},
author = {Jan Philipp Dietrich and Lavinia Baumstark and Stephen Wirth and Anastasis Giannousakis and Renato Rodrigues and Benjamin Leon Bodirsky and Debbora Leip and Ulrich Kreidenweis and David Klein and Pascal Sauer},
year = {2024},
note = {R package version 3.11.4},
note = {R package version 3.11.5},
url = {https://github.com/pik-piam/madrat},
doi = {10.5281/zenodo.1115490},
}
Expand Down

0 comments on commit 026c86e

Please sign in to comment.