Skip to content

Commit 5104cdb

Browse files
authored
Merge pull request #13 from KWB-R/dev
Prepare next release
2 parents 911e0ca + 0101aea commit 5104cdb

153 files changed

Lines changed: 3789 additions & 1475 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
^README\.md$
99
^.*\.Rproj$
1010
^\.Rproj\.user$
11+
^data-raw$

.github/workflows/R-CMD-check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
config:
2525
- {os: macOS-latest, r: 'release'}
26-
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
26+
- {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
2727
- {os: windows-latest, r: 'devel'}
2828
- {os: windows-latest, r: 'oldrel'}
2929
- {os: windows-latest, r: 'release'}
@@ -51,14 +51,14 @@ jobs:
5151

5252
- name: Cache R packages
5353
if: runner.os != 'Windows'
54-
uses: actions/cache@v1
54+
uses: actions/cache@v4
5555
with:
5656
path: ${{ env.R_LIBS_USER }}
5757
key: ${{ runner.os }}-r-${{ matrix.config.r }}-3-${{ hashFiles('depends.Rds') }}
5858
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-3-
5959

6060
- name: Install system dependencies
61-
if: runner.os == 'Linux'
61+
if: runner.os == 'Linux (no, skip this!)'
6262
env:
6363
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
6464
run: |

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
shell: Rscript {0}
3131

3232
- name: Cache R packages
33-
uses: actions/cache@v2
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ env.R_LIBS_USER }}
3636
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
shell: Rscript {0}
3131

3232
- name: Cache R packages
33-
uses: actions/cache@v1
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ env.R_LIBS_USER }}
3636
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.RData
44
.Ruserdata
55
docs
6+
kwb.rabimo.Rproj

DESCRIPTION

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: kwb.rabimo
22
Title: R Implementation of Water Balance Model Abimo
3-
Version: 1.0.1
3+
Version: 2.0.0
44
Authors@R: c(
55
person("Hauke", "Sonnenberg", , "hauke.sonnenberg@kompetenz-wasser.de", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-9134-2871")),
@@ -15,17 +15,22 @@ URL: https://github.com/KWB-R/kwb.rabimo
1515
BugReports: https://github.com/KWB-R/kwb.rabimo/issues
1616
Encoding: UTF-8
1717
Roxygen: list(markdown = TRUE)
18-
RoxygenNote: 7.2.3
18+
RoxygenNote: 7.3.1
1919
Suggests:
20-
covr
20+
ggplot2,
21+
jsonlite,
22+
plumber,
23+
testthat (>= 3.0.0)
2124
Imports:
2225
dplyr,
23-
kwb.abimo,
24-
kwb.utils,
26+
kwb.utils (>= 0.15.0),
2527
magrittr,
26-
methods,
2728
parallel,
28-
xml2
29+
rlang
2930
Remotes:
30-
github::kwb-r/kwb.abimo,
3131
github::kwb-r/kwb.utils
32+
Config/testthat/edition: 3
33+
Depends:
34+
R (>= 3.5.0)
35+
LazyData: true
36+
LazyDataCompression: xz

NAMESPACE

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,34 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export("%>%")
4-
export(BERLIN_TYPES_TO_USAGE_YIELD_IRRIGATION)
5-
export(abimo_config_to_config)
6-
export(actual_evaporation_waterbody_or_pervious)
7-
export(call_with_data)
8-
export(get_potential_evaporation)
9-
export(get_precipitation)
4+
export(calculate_delta_w)
5+
export(data_to_natural)
6+
export(define_controls)
7+
export(generate_rabimo_area)
8+
export(get_measure_stats)
109
export(get_soil_properties)
11-
export(get_usage_tuple)
12-
export(index_string_to_integers)
13-
export(list_to_data_frame_with_keys)
14-
export(prepare_input_data)
10+
export(read_column_info)
1511
export(real_evapo_transpiration)
1612
export(run_rabimo)
17-
export(yearly_height_to_volume_flow)
18-
importFrom(dplyr,left_join)
13+
export(run_rabimo_with_measures)
14+
export(test_plumber_api)
15+
export(triangle_of_fractions)
1916
importFrom(kwb.utils,catAndRun)
20-
importFrom(kwb.utils,catIf)
21-
importFrom(kwb.utils,checkForMissingColumns)
2217
importFrom(kwb.utils,createAccessor)
2318
importFrom(kwb.utils,defaultIfNULL)
2419
importFrom(kwb.utils,getAttribute)
25-
importFrom(kwb.utils,inRange)
26-
importFrom(kwb.utils,moveColumnsToFront)
27-
importFrom(kwb.utils,multiColumnLookup)
2820
importFrom(kwb.utils,printIf)
29-
importFrom(kwb.utils,removeColumns)
30-
importFrom(kwb.utils,removeElements)
3121
importFrom(kwb.utils,renameAndSelect)
3222
importFrom(kwb.utils,renameColumns)
33-
importFrom(kwb.utils,resetRowNames)
34-
importFrom(kwb.utils,safeRowBindAll)
3523
importFrom(kwb.utils,selectColumns)
3624
importFrom(kwb.utils,selectElements)
3725
importFrom(kwb.utils,stopFormatted)
3826
importFrom(kwb.utils,stringList)
3927
importFrom(magrittr,"%>%")
40-
importFrom(methods,formalArgs)
4128
importFrom(parallel,detectCores)
4229
importFrom(parallel,makeCluster)
4330
importFrom(parallel,parLapply)
4431
importFrom(parallel,stopCluster)
32+
importFrom(rlang,.data)
33+
importFrom(stats,approx)
34+
importFrom(utils,globalVariables)

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# kwb.rabimo 2.0.0 (2025-05-20)
2+
3+
- contains new data for Berlin in which road areas do not belong to blocks
4+
anymore but are blocks themselves
5+
- change in input format
6+
- new (English) column names,
7+
- partial areas are given as fractions instead of percentages or absolute
8+
areas
9+
- columns with redundant information are removed
10+
- potential evaporation is now part of the input data (was originally
11+
configured in the configuration file)
12+
- model-internal parameters "land_type", "yield" (renamed to: "veg_class"),
13+
and "irrigation", originally determined from Berlin-specific block area
14+
usage and structure, are now explicitly given in the input data
15+
- supports stormwater management measures
16+
117
# kwb.rabimo 1.0.0 (2023-11-09)
218

319
First release of kwb.rabimo. This version tries to simulate exactly what

R/abimo_config_to_config.R

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)