diff --git a/.buildlibrary b/.buildlibrary index 7b710b7..15ef26d 100644 --- a/.buildlibrary +++ b/.buildlibrary @@ -1,4 +1,4 @@ -ValidationKey: '42068600' +ValidationKey: '42088500' AcceptedWarnings: - 'Warning: package ''.*'' was built under R version' - 'Warning: namespace ''.*'' is not available and has been replaced' diff --git a/CITATION.cff b/CITATION.cff index c1496cd..7d43645 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.2.0 message: If you use this software, please cite it using the metadata from this file. type: software title: 'modelstats: Run Analysis Tools' -version: 0.21.14 +version: 0.21.15 date-released: '2024-06-26' abstract: A collection of tools to analyze model runs. authors: diff --git a/DESCRIPTION b/DESCRIPTION index d3163be..b6594b2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: modelstats Type: Package Title: Run Analysis Tools -Version: 0.21.14 +Version: 0.21.15 Date: 2024-06-26 Authors@R: c( person("Anastasis", "Giannousakis", email = "giannou@pik-potsdam.de", role = c("aut","cre")), diff --git a/R/modeltests.R b/R/modeltests.R index bd4cc4a..5c34259 100644 --- a/R/modeltests.R +++ b/R/modeltests.R @@ -322,7 +322,7 @@ evaluateRuns <- function(model, mydir, gitPath, compScen, email, mattermostToken lastRun <- max(sameRuns[sameRuns < basename(cfg$results_folder)]) currentRunTime <- as.numeric(.readRuntime("."), units = "hours") lastRunTime <- as.numeric(.readRuntime(paste0("../", lastRun)), units = "hours") - if (currentRunTime > (1.25 * lastRunTime)) { + if (length(currentRunTime) > 0 && length(lastRunTime) > 0 && currentRunTime > (1.25 * lastRunTime)) { errorList <- c(errorList, "Check runtime! Have some scenarios become slower?") } } diff --git a/README.md b/README.md index c1dfa9d..c4b610e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Run Analysis Tools -R package **modelstats**, version **0.21.14** +R package **modelstats**, version **0.21.15** [![CRAN status](https://www.r-pkg.org/badges/version/modelstats)](https://cran.r-project.org/package=modelstats) [![R build status](https://github.com/pik-piam/modelstats/workflows/check/badge.svg)](https://github.com/pik-piam/modelstats/actions) [![codecov](https://codecov.io/gh/pik-piam/modelstats/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/modelstats) [![r-universe](https://pik-piam.r-universe.dev/badges/modelstats)](https://pik-piam.r-universe.dev/builds) @@ -47,7 +47,7 @@ In case of questions / problems please contact Anastasis Giannousakis . +Giannousakis A, Richters O (2024). _modelstats: Run Analysis Tools_. R package version 0.21.15, . A BibTeX entry for LaTeX users is @@ -56,7 +56,7 @@ A BibTeX entry for LaTeX users is title = {modelstats: Run Analysis Tools}, author = {Anastasis Giannousakis and Oliver Richters}, year = {2024}, - note = {R package version 0.21.14}, + note = {R package version 0.21.15}, url = {https://github.com/pik-piam/modelstats}, } ```