Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ tutorial.md
^\.git$
^\.claude$
^_pkgdown\.yml$
^\.positai$
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '12120370'
ValidationKey: '12350400'
AutocreateReadme: yes
allowLinterWarnings: no
AddInReadme: tutorial.md
Expand Down
33 changes: 9 additions & 24 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,22 @@ jobs:
check:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pik-piam/ci-image:latest

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: "https://rse.pik-potsdam.de/r/packages"

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
lucode2
covr
madrat
magclass
citation
gms
goxygen
GDPuc
# piam packages also available on CRAN (madrat, magclass, citation,
# gms, goxygen, GDPuc) will usually have an outdated binary version
# available; by using extra-packages we get the newest version

- name: Install package and dependencies
shell: Rscript {0}
run: |
options(repos = c(pikpiam = 'https://pik-piam.r-universe.dev',
CRAN = Sys.getenv('RSPM')))
pak::pak()

- name: Run pre-commit checks
shell: bash
run: |
python -m pip install pre-commit
python -m pip freeze --local
pre-commit run --show-diff-on-failure --color=always --all-files

- name: Verify validation key
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,18 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
container:
image: ghcr.io/pik-piam/ci-image:latest
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: "https://rse.pik-potsdam.de/r/packages"

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
- name: Install
shell: Rscript {0}
run: |
options(repos = c(pikpiam = 'https://pik-piam.r-universe.dev',
CRAN = Sys.getenv('RSPM')))
pak::pak()
pak::pkg_install("tidyverse/tidytemplate")

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.Ruserdata

output
.positai
*.Rproj
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/lorenzwalthert/precommit
rev: 3b70240796cdccbe1474b0176560281aaded97e6 # frozen: v0.4.3.9003
rev: v0.4.3.9021
hooks:
- id: parsable-R
- id: deps-in-desc
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: 'piamInterfaces: Project specific interfaces to REMIND / MAgPIE'
version: 0.59.0
date-released: '2026-03-31'
version: 0.60.0
date-released: '2026-05-11'
abstract: Project specific interfaces to REMIND / MAgPIE.
authors:
- family-names: Benke
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: piamInterfaces
Title: Project specific interfaces to REMIND / MAgPIE
Version: 0.59.0
Date: 2026-03-31
Version: 0.60.0
Date: 2026-05-11
Authors@R: c(
person("Falk", "Benke", , "benke@pik-potsdam.de", role = c("aut", "cre")),
person("Oliver", "Richters", role = "aut")
Expand Down Expand Up @@ -32,8 +32,8 @@ Suggests:
withr,
writexl
Encoding: UTF-8
RoxygenNote: 7.3.3
Config/testthat/parallel: true
Config/testthat/edition: 3
Config/testthat/start-first: plotIntercomparison, generateIIASASubmission, checkSummations
Config/Needs/website: tidyverse/tidytemplate
Config/roxygen2/version: 8.0.0
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Project specific interfaces to REMIND / MAgPIE

R package **piamInterfaces**, version **0.59.0**
R package **piamInterfaces**, version **0.60.0**

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

## Purpose and Functionality

Expand Down Expand Up @@ -192,17 +192,17 @@ In case of questions / problems please contact Falk Benke <benke@pik-potsdam.de>

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

Benke F, Richters O (2026). "piamInterfaces: Project specific interfaces to REMIND / MAgPIE." Version: 0.59.0, <https://github.com/pik-piam/piamInterfaces>.
Benke F, Richters O (2026). "piamInterfaces: Project specific interfaces to REMIND / MAgPIE." Version: 0.60.0, <https://github.com/pik-piam/piamInterfaces>.

A BibTeX entry for LaTeX users is

```latex
@Misc{,
title = {piamInterfaces: Project specific interfaces to REMIND / MAgPIE},
author = {Falk Benke and Oliver Richters},
date = {2026-03-31},
date = {2026-05-11},
year = {2026},
url = {https://github.com/pik-piam/piamInterfaces},
note = {Version: 0.59.0},
note = {Version: 0.60.0},
}
```
1 change: 1 addition & 0 deletions inst/mappings/mapping_BTC2.csv
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ Pollution|Nitrogen|Surplus|Pasture;Tg N/yr;2;Nitrogen surplus of soil inputs ove
Population;million;1;Total population;;Population;million people;1;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;Population;million people;;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG03|Prevalence of overweight;million;-1;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG03|Prevalence of obesity;million;-1;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG02|Prevalence of underweight;million;-1;;M;
Population|Prevalence of Normal Weight|Children;million;;Number of children aged 0-14 with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;;;;;;
Population|Prevalence of Obesity;million;;Number of adults with with body mass index (BMI) greater than 30 and children with BMI greater than two standard deviations from reference;;SDG|SDG03|Prevalence of obesity;million;;mapping taken from SHAPE;M;
Expand Down
1 change: 1 addition & 0 deletions inst/mappings/mapping_ScenarioMIP.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7612,6 +7612,7 @@ Population|Poverty|National Poverty Line [Share];%;;Share of population living i
Population|Poverty|UMIC Poverty Line;million;;Number of people living in poverty with income below USD_2017 6.85 PPP per day (World Bank UMIC definition);;Population|Poverty|UMIC poverty line;million;;mapping taken from SHAPE;S;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;Population;million;;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG03|Prevalence of overweight;million;-1;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG03|Prevalence of obesity;million;-1;;M;
Population|Prevalence of Normal Weight;million;;Number of adults with body mass index (BMI) BMI between 18.5 and 25 and children with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;SDG|SDG02|Prevalence of underweight;million;-1;;M;
Population|Prevalence of Normal Weight|Children;million;;Number of children aged 0-14 with BMI within two standard deviations below reference (lower bound) and one standard deviations above reference (upper bound);;;;;;;
Population|Prevalence of Obesity;million;;Number of adults with with body mass index (BMI) greater than 30 and children with BMI greater than two standard deviations from reference;;SDG|SDG03|Prevalence of obesity;million;;mapping taken from SHAPE;M;
Expand Down
Loading
Loading