Skip to content

Commit 437c98b

Browse files
Merge pull request #2078 from LaviniaBaumstark/REMINDrelease3p5p0
remind release 3.5.0
2 parents b5097bf + f877eff commit 437c98b

File tree

238 files changed

+16834
-7203
lines changed

Some content is hidden

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

238 files changed

+16834
-7203
lines changed

.Rprofile

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,8 @@ Sys.setenv(RENV_PATHS_LIBRARY = "renv/library")
66
# do not check if library and renv.lock are in sync, because normally renv.lock does not exist
77
options(renv.config.synchronized.check = FALSE)
88

9-
# always set the renv project to the current directory
10-
Sys.setenv("RENV_PROJECT" = getwd())
11-
12-
# when increasing renvVersion first commit new version's activate script and
13-
# put that commit's hash into the git checkout call below
14-
renvVersion <- "1.0.7"
15-
16-
# reset renv/activate.R to match renv 1.0.7
17-
gitRoot <- system2("git", c("rev-parse", "--show-toplevel"), stdout = TRUE)
18-
if (Sys.getenv("RESET_RENV_ACTIVATE_SCRIPT", unset = "TRUE") == "TRUE" &&
19-
normalizePath(gitRoot) == normalizePath(".")) {
20-
system2("git", c("checkout", "b83bb1811ff08d8ee5ba8e834af5dd0080d10e66", "--", "renv/activate.R"))
21-
}
22-
239
source("renv/activate.R")
2410

25-
if (packageVersion("renv") != renvVersion) {
26-
renvLockExisted <- file.exists(renv::paths$lockfile())
27-
renv::install(paste0("renv@", renvVersion))
28-
if (!renvLockExisted) {
29-
unlink(renv::paths$lockfile())
30-
}
31-
}
32-
3311
if (!"https://rse.pik-potsdam.de/r/packages" %in% getOption("repos")) {
3412
options(repos = c(getOption("repos"), pik = "https://rse.pik-potsdam.de/r/packages"))
3513
}

.github/workflows/size-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ maxfilesize <- function(max) {
1414
message("All files are smaller than ", max, "kB\n")
1515
}
1616

17-
maxfilesize(250)
17+
maxfilesize(550)

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
# Ignore everything in "input" folders
2121
input/
22+
!input/files
2223
!/scripts/input/
2324

2425
# Ignore everything in root "output" folder
@@ -88,3 +89,4 @@ calibration_results/
8889

8990
# ignore test logs
9091
tests/test-full*.log
92+
tests/testthat/C_TESTTHAT_startlog_*.txt

CHANGELOG.md

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,67 @@
44
All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
8+
## [3.5.0] - 2025-04-04
9+
10+
### added
11+
- Possibility of using updated sources for baseline non-CO2 emissions calculation, controlled by `cm_emifacs_baseyear`
12+
- Add `readcoupled` script that allows to print data from gdx files or mif files for all coupled runs
13+
[[#1977](https://github.com/remindmodel/remind/pull/1977), [#1990](https://github.com/remindmodel/remind/pull/1990)]
14+
- Add `scripts/start/checkSettingsRemMag.R` to check compatibility of REMIND and MAgPIE settings with respect
15+
to GDP, Population, bioenergy phaseout and damage settings
16+
[[#2028](https://github.com/remindmodel/remind/pull/2028)]
17+
18+
### input data/calibration
19+
- new input data rev7.21 including new MAgPIE data [[#1956](https://github.com/remindmodel/remind/pull/1956)]
20+
- new input data rev7.24 including IEA update [[#1992](https://github.com/remindmodel/remind/pull/1992)]
21+
- add CES parameters for SSP3 with imperfect capital markets [[#1995](https://github.com/remindmodel/remind/pull/1995)]
22+
23+
### changed
24+
- **config** updated ScenarioMIP config
25+
[[#1972](https://github.com/remindmodel/remind/pull/1972)]
26+
- **scripts** for MAgPIE coupled runs, if the coupled config contains a `path_gdx_ref` column, it needs a `path_gdx_refpolicycost` column as well.
27+
[[#1940](https://github.com/remindmodel/remind/pull/1940)]
28+
- **scripts** make the selection of variables and equations that are fixed on reference run automatic
29+
[[#2033](https://github.com/remindmodel/remind/pull/2033)]
30+
-_**scripts** You can define timesteps in xlsx_IIASA export script. Defaults to REMIND standard. If you want interpolation between timesteps,
31+
you need to adjust it. [[#2056](https://github.com/remindmodel/remind/pull/2056)]
32+
- **core** merge cm_GDPscen and cm_POPscen into cm_GDPpopScen
33+
[[#1973](https://github.com/remindmodel/remind/pull/1973)]
34+
- **45_carbonprice** realization 'none' only sets carbon price to 0 for t >= cm_startyear
35+
[[#2056](https://github.com/remindmodel/remind/pull/2056)]
36+
- **scripts** Updated renv version from to 1.1.1 to 1.1.4
37+
[[#2065](https://github.com/remindmodel/remind/pull/2065)]
38+
- **scripts** let the release script add a renv.lock to each new release
39+
[[#2058](https://github.com/remindmodel/remind/pull/2058)]
40+
41+
### added
42+
-
43+
44+
### removed
45+
- **37_industry** removed superseded realization fixed_shares [[#1941](https://github.com/remindmodel/remind/pull/1941)]
46+
- last traces of SSP2EU scenario which is superseeded by SSP2 [[#2028](https://github.com/remindmodel/remind/pull/2028)]
47+
48+
### fixed
49+
- **37_industry** fix and restructure chemical feedstock balancing to account for all negative emissions from stored non-fossil carbon [[#1829](https://github.com/remindmodel/remind/pull/1829)]
50+
51+
752
## [3.4.0] - 2024-12-11
853

954
### input data/calibration
1055
- new input data rev6.84 [[#1757](https://github.com/remindmodel/remind/pull/1757)]
11-
- new input data rev6.95 in US$2017[[#1812]] (https://github.com/remindmodel/remind/pull/1812)
12-
- new input data rev7.13 including new MAgPIE emulators [[#1886]] (https://github.com/remindmodel/remind/pull/1886)
56+
- new input data rev6.95 in US$2017 [[#1812](https://github.com/remindmodel/remind/pull/1812)]
57+
- new input data rev7.13 including new MAgPIE emulators [[#1886](https://github.com/remindmodel/remind/pull/1886)]
1358
- CES parameter and gdx files calibrated with new default diffLin2Lin for NPi
1459
[[#1747](https://github.com/remindmodel/remind/pull/1747)] and
1560
[[#1757](https://github.com/remindmodel/remind/pull/1757)]
1661
- Update of NDC goals with cutoff data August 31, 2024
1762
[[#1816](https://github.com/remindmodel/remind/pull/1816)]
1863
- Prepare to make input data available for externals. Do not stop on missing validation data.
19-
[[1828]][(https://github.com/remindmodel/remind/pull/1828)]
64+
[[1828](https://github.com/remindmodel/remind/pull/1828)]
2065

2166
### changed
22-
- shift base unit from US$2005 to US$2017 [[#1812]] (https://github.com/remindmodel/remind/pull/1812)
67+
- shift base unit from US$2005 to US$2017 [[#1812](https://github.com/remindmodel/remind/pull/1812)]
2368
- plastic waste by default does not lag plastics production by ten years
2469
anymore; can be re-activated using `cm_wastelag`
2570
- moved to edgeTransport 2.0 version [[#1749](https://github.com/remindmodel/remind/pull/1749)]
@@ -148,7 +193,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
148193
- **scripts** add script to automatically check project summations from piamInterfaces
149194
[[#1587](https://github.com/remindmodel/remind/pull/1587)]
150195
- **scripts** add MAGICCv7.5.3 with AR6 settings as output script, add compareScenarios2 option
151-
[[#1475](https://github.com/remindmodel/remind/pull/1475), [[#1615](https://github.com/remindmodel/remind/pull/1615)]
196+
[[#1475](https://github.com/remindmodel/remind/pull/1475)], [[#1615](https://github.com/remindmodel/remind/pull/1615)]
152197
- **scripts** add 'make test-fix' which runs codeCheck in interactive mode, adjusting not_used.txt files
153198
[[#1625](https://github.com/remindmodel/remind/pull/1625)]
154199
- **testthat** test and compile all config files [[#1356](https://github.com/remindmodel/remind/pull/1356)]

CITATION.cff

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ authors:
4949
given-names: "Cornelia"
5050
affiliation: "Potsdam Institute for Climate Impact Research"
5151

52+
- family-names: "Bantje"
53+
given-names: "David"
54+
orcid: https://orcid.org/0009-0005-8875-9496
55+
affiliation: "Potsdam Institute for Climate Impact Research"
56+
57+
- family-names: "Beier"
58+
given-names: "Felicitas"
59+
orcid: https://orcid.org/0000-0002-8725-7663
60+
affiliation: "Potsdam Institute for Climate Impact Research"
61+
5262
- family-names: "Benke"
5363
given-names: "Falk"
5464
affiliation: "Potsdam Institute for Climate Impact Research"
@@ -67,6 +77,11 @@ authors:
6777
orcid: https://orcid.org/0000-0002-3240-2608
6878
affiliation: "Potsdam Institute for Climate Impact Research"
6979

80+
- family-names: "Dorndorf"
81+
given-names: "Tabea"
82+
orcid: https://orcid.org/0000-0003-1824-898X
83+
affiliation: "Potsdam Institute for Climate Impact Research"
84+
7085
- family-names: "Duerrwaechter"
7186
given-names: "Jakob"
7287
orcid: https://orcid.org/0000-0001-8961-5340
@@ -92,6 +107,11 @@ authors:
92107
orcid: https://orcid.org/0000-0002-6406-6266
93108
affiliation: "Potsdam Institute for Climate Impact Research"
94109

110+
- family-names: "Hagen"
111+
given-names: "Alex"
112+
orcid: https://orcid.org/0000-0003-4793-8664
113+
affiliation: "Potsdam Institute for Climate Impact Research"
114+
95115
- family-names: "Haller"
96116
given-names: "Markus"
97117

@@ -100,13 +120,22 @@ authors:
100120
orcid: https://orcid.org/0000-0003-1818-3186
101121
affiliation: "Potsdam Institute for Climate Impact Research"
102122

123+
- family-names: "Hayez"
124+
given-names: "Léa"
125+
affiliation: "Potsdam Institute for Climate Impact Research"
126+
103127
- family-names: "Hilaire"
104128
given-names: "Jerome"
105129
orcid: https://orcid.org/0000-0002-9879-6339
106130
affiliation: "Potsdam Institute for Climate Impact Research"
107131

132+
- family-names: "Hofbauer"
133+
given-names: "Verena"
134+
affiliation: "Potsdam Institute for Climate Impact Research"
135+
108136
- family-names: "Hoppe"
109137
given-names: "Johanna"
138+
orcid: https://orcid.org/0009-0004-6753-5090
110139
affiliation: "Potsdam Institute for Climate Impact Research"
111140

112141
- family-names: "Klein"
@@ -135,6 +164,11 @@ authors:
135164
given-names: "Elmar"
136165
affiliation: "Potsdam Institute for Climate Impact Research"
137166

167+
- family-names: "Lécuyer"
168+
given-names: "Fabrice"
169+
orcid: https://orcid.org/0000-0002-7364-999X
170+
affiliation: "Potsdam Institute for Climate Impact Research"
171+
138172
- family-names: "Levesque"
139173
given-names: "Antoine"
140174
affiliation: "Potsdam Institute for Climate Impact Research"
@@ -179,6 +213,11 @@ authors:
179213
- family-names: "Mouratiadou"
180214
given-names: "Ioanna"
181215

216+
- family-names: "Müßel"
217+
given-names: "Jarusch"
218+
orcid: https://orcid.org/0000-0002-1857-7866
219+
affiliation: "Potsdam Institute for Climate Impact Research"
220+
182221
- family-names: "Odenweller"
183222
given-names: "Adrian"
184223
orcid: https://orcid.org/0000-0002-1123-8124
@@ -218,6 +257,11 @@ authors:
218257
- family-names: "Roming"
219258
given-names: "Niklas"
220259

260+
- family-names: "Rosemann"
261+
given-names: "Ricarda"
262+
orcid: https://orcid.org/0009-0006-5939-3197
263+
affiliation: "Potsdam Institute for Climate Impact Research"
264+
221265
- family-names: "Rottoli"
222266
given-names: "Marianna"
223267
affiliation: "Potsdam Institute for Climate Impact Research"
@@ -226,6 +270,16 @@ authors:
226270
given-names: "Tonn"
227271
affiliation: "Potsdam Institute for Climate Impact Research"
228272

273+
- family-names: "Salzwedel"
274+
given-names: "Robert"
275+
orcid: https://orcid.org/0000-0002-7614-9210
276+
affiliation: "Potsdam Institute for Climate Impact Research"
277+
278+
- family-names: "Sauer"
279+
given-names: "Pascal"
280+
orcid: https://orcid.org/0000-0002-6856-8239
281+
affiliation: "Potsdam Institute for Climate Impact Research"
282+
229283
- family-names: "Schmidt"
230284
given-names: "Eva"
231285

@@ -243,6 +297,11 @@ authors:
243297
given-names: "Anselm"
244298
affiliation: "Potsdam Institute for Climate Impact Research"
245299

300+
- family-names: "Sitarz"
301+
given-names: "Joanna"
302+
orcid: https://orcid.org/0000-0002-8060-1097
303+
affiliation: "Potsdam Institute for Climate Impact Research"
304+
246305
- family-names: "Sörgel"
247306
given-names: "Björn"
248307
orcid: https://orcid.org/0000-0002-2630-7081
@@ -262,6 +321,10 @@ authors:
262321
orcid: https://orcid.org/0000-0001-8801-173X
263322
affiliation: "Potsdam Institute for Climate Impact Research"
264323

324+
- family-names: "Weiss"
325+
given-names: "Bennet"
326+
affiliation: "Potsdam Institute for Climate Impact Research"
327+
265328
title: REMIND - REgional Model of INvestments and Development
266329
abstract: REMIND (REgional Model of Investment and Development) is a numerical
267330
open source model that represents the future evolution of the world economies
@@ -271,8 +334,8 @@ abstract: REMIND (REgional Model of Investment and Development) is a numerical
271334
technology, policy and climate constraints. It also accounts for regional trade
272335
characteristics on goods, energy fuels, and emissions allowances. All greenhouse
273336
gas emissions due to human activities are represented in the model.
274-
version: 3.4.0
275-
date-released: 2024-12-11
337+
version: 3.5.0
338+
date-released: 2025-04-04
276339
repository-code: https://github.com/remindmodel/remind
277340
keywords:
278341
- energy

DESCRIPTION

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Title: REMIND - REgional Model of INvestments and Development
33
Version: 0.1
44
Date: 2024-07-04
55
Description: This is not a package yet, the purpose of this file is to
6-
document metadata, notably dependencies.
6+
document metadata, notably dependencies required by the R scripts.
7+
Initialization of the renv will be based on this DESCRIPTION file.
78
License: file LICENSE
89
URL: https://github.com/remindmodel/remind,
910
https://doi.org/10.5281/zenodo.6794920
@@ -17,15 +18,15 @@ Imports:
1718
data.table,
1819
devtools,
1920
dplyr,
20-
edgeTransport (>= 2.7.0),
21+
edgeTransport (>= 2.14.1),
2122
reporttransport (>= 0.5.0),
2223
flexdashboard,
2324
GDPuc,
2425
gdx (>= 1.53.0),
2526
gdxdt,
2627
gdxrrw,
2728
ggplot2,
28-
gms (>= 0.33.0),
29+
gms (>= 0.33.4),
2930
goxygen (>= 1.4.4),
3031
gridExtra,
3132
gtools,
@@ -45,16 +46,11 @@ Imports:
4546
magpiesets,
4647
mip (>= 0.150.0),
4748
modelstats,
48-
mrremind (>= 0.191.2),
49-
mrcommons (>= 1.43.6),
50-
mrdrivers (>= 3.0.0),
51-
mrtransport (>= 0.7.1),
52-
mrvalidation,
5349
ncdf4,
5450
nleqslv,
5551
optparse,
5652
piamenv (>= 0.6.0),
57-
piamInterfaces (>= 0.34.1),
53+
piamInterfaces (>= 0.48.1),
5854
piamPlotComparison (>= 0.0.10),
5955
piamutils,
6056
plotly,
@@ -64,8 +60,8 @@ Imports:
6460
raster,
6561
readr,
6662
readxl,
67-
remind2 (>= 1.156.1),
68-
renv,
63+
remind2 (>= 1.167.0),
64+
renv (>= 1.1.1),
6965
reshape2,
7066
reticulate,
7167
rlang,
@@ -74,7 +70,7 @@ Imports:
7470
SPEI,
7571
stringr,
7672
terra,
77-
testthat (>= 3.2.0),
73+
testthat (>= 3.2.3),
7874
tibble,
7975
tidyr,
8076
tidyverse,

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ update-renv: ## Upgrade all pik-piam packages in your renv to the respective
2626

2727
update-renv-all: ## Upgrade all packages (including CRAN packages) in your renv
2828
## to the respective latest release, write renv.lock archive
29-
@Rscript -e 'renv::update(exclude = "renv"); piamenv::archiveRenv()'
29+
@Rscript -e 'renv::update(); piamenv::archiveRenv()'
3030

3131
revert-dev-packages: ## All PIK-PIAM packages that are development versions, i.e.
3232
## that have a non-zero fourth version number component, are
@@ -39,6 +39,14 @@ ensure-reqs: ## Ensure the REMIND library requirements are fulfilled
3939
## install updates unless it is required.
4040
@Rscript -e 'source("scripts/start/ensureRequirementsInstalled.R"); ensureRequirementsInstalled(rerunPrompt="make ensure-reqs")'
4141

42+
historic-reqs: ## Restore renv.lock file "v" from the lockfile archive. Call
43+
## make historic-reqs v=YYYY-MM-DD
44+
## where YYYY-MM-DD is a date tag in the lockfile archive.
45+
## Uses environment variable RSE_LOCKFILE_ARCHIVE, or if that
46+
## is unset /p/projects/rd3mod/github/repos/pik-piam/lockfile-archive/main/
47+
@[ -n "$(v)" ] || ( echo "no date tag \"v\" set to restore renv.lock"; exit 1 )
48+
@mkdir -p renv/archive && git -C $${RSE_LOCKFILE_ARCHIVE:-/p/projects/rd3mod/github/repos/pik-piam/lockfile-archive/main/} show $(v):./conservative.renv.lock > renv/archive/$(v)_renv.lock && Rscript -e "renv::restore(lockfile = \"renv/archive/$(v)_renv.lock\", exclude = \"renv\")"
49+
4250
archive-renv: ## Write renv.lock into archive.
4351
Rscript -e 'piamenv::archiveRenv()'
4452

0 commit comments

Comments
 (0)