Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
72645ce
add renv + bootstrapping
pfuehrlich-pik Oct 14, 2022
2ec84a2
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Oct 26, 2022
c30ffac
main renv + bootstrapping
pfuehrlich-pik Oct 26, 2022
7352ce6
remove blackmagicc for now
pfuehrlich-pik Oct 26, 2022
ed2cb48
fix here paths
pfuehrlich-pik Oct 26, 2022
3d98cf8
create run renv in start_run
pfuehrlich-pik Nov 3, 2022
226d43f
add DESCRIPTION
pfuehrlich-pik Nov 7, 2022
fe7aeb2
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Nov 8, 2022
fa2f665
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Nov 9, 2022
67bc08f
use piamenv
pfuehrlich-pik Nov 17, 2022
0f3ae81
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Nov 17, 2022
66cbc36
up version number to 4.6
pfuehrlich-pik Nov 17, 2022
59006e8
add Makefile
pfuehrlich-pik Nov 17, 2022
e69c8fe
remove renv scripts
pfuehrlich-pik Nov 17, 2022
88ec735
no main renv.lock
pfuehrlich-pik Nov 21, 2022
9318e73
ruse gms::getLine, create run renv
pfuehrlich-pik Nov 21, 2022
8be822e
Update SHAPE settings
weindl Nov 22, 2022
6c23b28
Update SDP-EI settings in scenario_config.csv
weindl Nov 22, 2022
af516eb
Update scenario_config.csv
weindl Nov 22, 2022
742ae06
minor things
pfuehrlich-pik Nov 23, 2022
faac2e4
output.R update check, other stuff
pfuehrlich-pik Nov 29, 2022
7153d2f
add qgraph as suggests, show goxygen warnings
pfuehrlich-pik Nov 29, 2022
c2d2b7d
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Nov 29, 2022
2aa6c63
skip renv for snapshots
pfuehrlich-pik Nov 30, 2022
1055532
simpler ask
pfuehrlich-pik Nov 30, 2022
8869622
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Nov 30, 2022
452031f
require piamenv 0.3.2
pfuehrlich-pik Nov 30, 2022
3d81885
fix / in output script name
pfuehrlich-pik Dec 1, 2022
d2eb127
handle multiple output scripts/run folder
pfuehrlich-pik Dec 2, 2022
a236cdd
fixed minimum labor share for all regions as constraint
Dec 6, 2022
791bdfb
changelog, readme
pfuehrlich-pik Dec 6, 2022
2b804c3
make help using Rscript
pfuehrlich-pik Dec 8, 2022
0220dc8
alignment
pfuehrlich-pik Dec 8, 2022
eeaabae
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Dec 13, 2022
b7fb262
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Dec 15, 2022
5d98b53
DESC -> DEPENDENCIES
pfuehrlich-pik Dec 15, 2022
1369c45
use DEPENDENCIES in bootstrapping
pfuehrlich-pik Dec 16, 2022
6967976
use identical
pfuehrlich-pik Dec 16, 2022
bbff21c
Add empty model for tests.
mikapfl Jan 2, 2023
66ae62e
merged develop into feature branch
Jan 3, 2023
55f5274
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Jan 4, 2023
eca7174
re-add blackmagicc script
pfuehrlich-pik Jan 4, 2023
db63947
Merge branch 'develop' of github.com:magpiemodel/magpie into renv-magpie
pfuehrlich-pik Jan 5, 2023
f084929
set RENV_PATHS_LIBRARY
pfuehrlich-pik Jan 6, 2023
9b9da1a
set RENV_PATHS_LIBRARY when creating run renvs
pfuehrlich-pik Jan 6, 2023
1acd337
Merge branch 'f_SHAPE3_dev' into develop
weindl Jan 8, 2023
a11f07c
Merge pull request #62 from weindl/develop
weindl Jan 8, 2023
297839e
Update CHANGELOG.md
weindl Jan 8, 2023
ecf93df
Update SHAPE SDP switches in scenario_config.csv
weindl Jan 8, 2023
99cf223
Update SDP-EI setting
weindl Jan 8, 2023
002c6e9
implementation of labor share target
Jan 9, 2023
ca4d2ec
Merge pull request #482 from pfuehrlich-pik/renv-magpie
pfuehrlich-pik Jan 9, 2023
872b739
Merge pull request #63 from magpiemodel/develop
weindl Jan 9, 2023
10d4817
Merge branch 'develop' of github.com:magpiemodel/magpie into f_laborS…
Jan 9, 2023
7868a46
changed set name req to factors
Jan 9, 2023
5335b17
bugfixes
Jan 9, 2023
77ec7f1
updated changelog
Jan 9, 2023
412588e
documentation
Jan 9, 2023
efaba48
changed first year of minimum labor share
Jan 9, 2023
f7294da
added variables to FSDP collect script
Jan 9, 2023
a707fb6
Make empty model re-usable easier
mikapfl Jan 9, 2023
d4cd456
removed old indicators from FSDP_collect
Jan 10, 2023
cbbdbb7
removed old indicators from FSDP_collect 2
Jan 10, 2023
c24e404
added sub-national validation output script for India
PrantikaDas Jan 10, 2023
ce7c13b
Updated calibration factor
weindl Jan 10, 2023
eb77d9f
Update scripts/output/projects/FABLE_India_subnational_validation.R
mishkos Jan 10, 2023
44a8beb
Update scripts/output/projects/FABLE_India_subnational_validation.R
mishkos Jan 10, 2023
7c1d377
Merge pull request #498 from weindl/f_SHAPE4_dev
weindl Jan 10, 2023
e57ae8f
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
5303b0c
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
7c6bd68
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
54a3319
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
dc6b9d8
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
35fb0d1
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
6be25a2
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
0de9439
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
01cb9c8
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
6e951ce
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
0f77313
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
d79b8d6
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
422b551
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
cedc5d7
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
6df5a9c
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
0eee3e4
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
a9f21e3
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
fc33a50
Update scripts/output/projects/FABLE_India_subnational_validation.R
PrantikaDas Jan 11, 2023
b448838
Add new regionalized values for cshare
k4rst3ns Jan 11, 2023
fe3f488
improved naming and description
Jan 11, 2023
ab8472c
Merge pull request #500 from PrantikaDas/develop
mishkos Jan 11, 2023
fb924ea
copyright 2023
pfuehrlich-pik Jan 11, 2023
1a520bc
run insertheader.R
pfuehrlich-pik Jan 11, 2023
5fddf72
delete empty not_used.txt
pfuehrlich-pik Jan 11, 2023
ac2a531
remove empty not_used.txt, remove header
pfuehrlich-pik Jan 11, 2023
c6e1b75
remove copyright not_used
pfuehrlich-pik Jan 11, 2023
b2a3cdb
changed name of s38_fix_capital_need
Jan 11, 2023
3030e92
insertheader -txt
pfuehrlich-pik Jan 11, 2023
597a327
target year for labor share as parameter
Jan 11, 2023
38d737e
start release script
pfuehrlich-pik Jan 11, 2023
5b1a261
bugfix
Jan 11, 2023
b261bc8
Merge pull request #501 from pfuehrlich-pik/develop
pfuehrlich-pik Jan 12, 2023
73772d4
minor
pfuehrlich-pik Jan 12, 2023
b0ecdbc
Merge branch 'develop' of github.com:pfuehrlich-pik/magpiemodel into …
pfuehrlich-pik Jan 12, 2023
bce6c88
fixed typo
Jan 12, 2023
99a19ad
more
pfuehrlich-pik Jan 12, 2023
7d50ddd
magpie release 4.6.2
pfuehrlich-pik Jan 12, 2023
394ebbf
Merge branch 'develop' of https://github.com/magpiemodel/magpie into …
mikapfl Jan 12, 2023
4481932
Merge branch 'develop' of github.com:magpiemodel/magpie into f_laborS…
Jan 12, 2023
9e1cc3c
regenerate empty model whenever it is used.
mikapfl Jan 12, 2023
06213dc
finish release scripts
pfuehrlich-pik Jan 12, 2023
49b5c80
Add changelog entry.
mikapfl Jan 12, 2023
2bac5a7
github action without renv
pfuehrlich-pik Jan 12, 2023
49a52c6
Merge pull request #499 from deleip/f_laborShareTarget
deleip Jan 12, 2023
a139e75
Merge pull request #503 from pfuehrlich-pik/develop
pfuehrlich-pik Jan 12, 2023
346e871
merge master into develop
pfuehrlich-pik Jan 12, 2023
3e369db
remove review request Jan
pfuehrlich-pik Jan 12, 2023
d95a718
Merge branch 'develop' of github.com:magpiemodel/magpie into develop
pfuehrlich-pik Jan 12, 2023
a602d2e
Merge pull request #504 from pfuehrlich-pik/develop
pfuehrlich-pik Jan 12, 2023
2d54cbb
Close file connections properly
mikapfl Jan 13, 2023
40be28c
Close file connections properly
mikapfl Jan 13, 2023
ee7f480
Merge branch 'develop' into empty_model
mikapfl Jan 13, 2023
1c96756
Merge branch 'develop' of https://github.com/magpiemodel/magpie into …
mikapfl Jan 13, 2023
94d16b2
Merge branch 'empty_model' of https://github.com/mikapfl/magpie into …
mikapfl Jan 13, 2023
0598f8d
Merge pull request #497 from mikapfl/empty_model
mikapfl Jan 13, 2023
9f61452
bugfix exo food and exo waste scenarios
flohump Jan 15, 2023
54bf713
bugfix2
flohump Jan 15, 2023
af71ede
changelog
flohump Jan 15, 2023
57f6351
fix bioplastic demand
flohump Jan 16, 2023
5353057
updated comments on bioplastic
Jan 16, 2023
1e63914
Update modules/62_material/exo_flexreg_apr16/preloop.gms
flohump Jan 16, 2023
e0aad77
Merge pull request #505 from flohump/f_FixFood
flohump Jan 16, 2023
6ad252c
updates and fixes
k4rst3ns Jan 17, 2023
0e3b649
add changes to changeslog and pasture realization file
k4rst3ns Jan 17, 2023
d6185a1
Merge remote-tracking branch 'origin/develop' into f_ipcc2019
k4rst3ns Jan 17, 2023
c0b7456
update header for new realization
k4rst3ns Jan 17, 2023
b4f690e
update scenario config
k4rst3ns Jan 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^renv$
^renv\.lock$
^.*\.zenodo.json$
50 changes: 30 additions & 20 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
# source global .Rprofile (very important to load user specific settings)
# DO NOT EDIT THIS LINE!
if(file.exists("~/.Rprofile")) source("~/.Rprofile")
# | (C) 2008-2023 Potsdam Institute for Climate Impact Research (PIK)
# | authors, and contributors see CITATION.cff file. This file is part
# | of MAgPIE and licensed under AGPL-3.0-or-later. Under Section 7 of
# | AGPL-3.0, you are granted additional permissions described in the
# | MAgPIE License Exception, version 1.0 (see LICENSE file).
# | Contact: magpie@pik-potsdam.de
Sys.setenv(RENV_PATHS_LIBRARY = "renv/library")

source("renv/activate.R")

if (!"https://rse.pik-potsdam.de/r/packages" %in% getOption("repos")) {
options(repos = c(getOption("repos"), pik = "https://rse.pik-potsdam.de/r/packages"))
}

# This profile can be used to link the model to a specified library snapshot
# (e.g. if your model version is from an older date and does not work with the
# newest libraries anymore)
# By default it is not active. Just uncomment the following lines and set the
# snapshot path to a path of your choice
# Please make also sure that in your config file this .Rprofile file is copied
# to the model output folder. Otherwise, the run itself will again use the
# default library set!
# bootstrapping, will only run once after this repo is freshly cloned
if (isTRUE(rownames(installed.packages(priority = "NA")) == "renv")) {
if (file.exists("DESCRIPTION") && !identical(readLines("DESCRIPTION"), readLines("DEPENDENCIES"))) {
warning("Unexpected DESCRIPTION file found, try removing it. Will not install dependencies.")
} else {
message("R package dependencies are not installed in this renv, installing now...")
renv::install("yaml", prompt = FALSE) # yaml is required to find dependencies in Rmd files
# renv will only consider a file called DESCRIPTION, so rename DEPENDENCIES
file.copy("DEPENDENCIES", "DESCRIPTION")
renv::hydrate() # auto-detect and install all dependencies
file.remove("DESCRIPTION")
message("Finished installing R package dependencies.")
}
}

# PLEASE NOTE: snapshots ending with '_R4' require R 4.1 (piam/1.24 and newer),
# other snapshots require R 3.6 (piam/1.20)
# snapshot <- "/p/projects/rd3mod/R/libraries/snapshots/2020_03_10"
# if(file.exists(snapshot)) {
# cat("Setting libPaths to",snapshot,"\n")
# .libPaths(snapshot)
# } else {
# cat("Could not find",snapshot,"\n")
# }
# source global .Rprofile (very important to load user specific settings)
if (file.exists("~/.Rprofile")) {
source("~/.Rprofile")
}
33 changes: 11 additions & 22 deletions .github/workflows/test-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,30 @@ on:
- main
- master
- develop

name: check

jobs:
check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1

- name: Query dependencies
run: |
saveRDS("gms", ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Remove .Rprofile
run: rm .Rprofile

- name: Cache R packages
uses: actions/cache@v2
- uses: r-lib/actions/setup-r@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
extra-repositories: https://cloud.r-project.org https://rse.pik-potsdam.de/r/packages/

- name: Install R dependencies
run: |
repos <- c("https://cloud.r-project.org","https://rse.pik-potsdam.de/r/packages/")
install.packages(c("remotes"), repos=repos)
remotes::install_cran("gms", repos=repos)
shell: Rscript {0}

uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: gms
extra-packages: gms

- name: pre-commit Hook
run: source(".githooks/pre-commit")
shell: Rscript {0}


2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ gamslice.txt

#ignore lock file
/.lock

/renv.lock
2 changes: 2 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
linters: lucode2::lintrRules()
encoding: "UTF-8"
23 changes: 23 additions & 0 deletions .snapshot.Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# source global .Rprofile (very important to load user specific settings)
# DO NOT EDIT THIS LINE!
if(file.exists("~/.Rprofile")) source("~/.Rprofile")


# This profile can be used to link the model to a specified library snapshot
# (e.g. if your model version is from an older date and does not work with the
# newest libraries anymore).
# By default it is not active. Just uncomment the following lines and set the
# snapshot path to a path of your choice.
# Please make also sure that in your config file this .Rprofile file is copied
# to the model output folder. Otherwise, the run itself will again use the
# default library set!

# PLEASE NOTE: snapshots ending with '_R4' require R 4.1 (piam/1.24 and newer),
# other snapshots require R 3.6 (piam/1.20)
# snapshot <- "/p/projects/rd3mod/R/libraries/snapshots/2022_10_28_R4"
# if(file.exists(snapshot)) {
# cat("Setting libPaths to",snapshot,"\n")
# .libPaths(snapshot, include.site = FALSE)
# } else {
# cat("Could not find",snapshot,"\n")
# }
4 changes: 2 additions & 2 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "MAgPIE - An Open Source land-use modeling framework",
"version": "4.6.1dev",
"version": "4.6.2dev",
"creators": [
{
"name": "Dietrich, Jan Philipp",
Expand Down Expand Up @@ -109,5 +109,5 @@
"license": {
"id": "AGPL-3.0-or-later"
},
"publication_date": "2022-12-13"
"publication_date": "2023-01-12"
}
45 changes: 37 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

### changed
- **36_employment** include labor costs from MACCs in employment
- **57_maccs** split costs into labor and capital
- **38_factor_cots** renamed `p36_cost_shares` to `pm_cost_share_crops`
- **config** scenario_fsec.csv update
- **scripts** FSDP_collect FSDP_process fsec.R updates
- **config** update input data to rev4.79
- **config** and **38_factor_costs** changed name of `s38_fix_capital_need` to `s38_startyear_labor_substitution`
- **config** added `s38_target_labor_share`, `s38_targetyear_labor_share` and `s38_target_fulfillment` to define labor share target scnarios
- **38_factor_costs** changed name of set `req` to `factors` (also used in 11_costs, 57_maccs, 70_livestock)
- **38_factos_costs** sticky_labor realization: included option to set a labor share target
- **15_food** changed `anthro_iso_jun22` realisation such that results in case of `exo_diet = 1/0` and `exo_waste = 1/0` are identical until 2020
- **62_material** Bioplastic demand identical in all scenarios until 2020

### added
- **scripts** added output script that generates a short mif containing only variables relevant for the REMIND coupling
- **scripts** added start script which starts an empty model just regenerating a previous run
- **31_past** added additional limitation (single climate scenario input) for **grasslands_apr22**
- **59_som** added new **cellpool_jan23** realization with updated 2019 IPCC guidelines values

### removed
-
Expand All @@ -24,6 +29,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-


## [4.6.2] - 2023-01-12

### changed
- **36_employment** include labor costs from MACCs in employment
- **38_factor_cots** renamed `p36_cost_shares` to `pm_cost_share_crops`
- **57_maccs** split costs into labor and capital
- **config** scenario_fsec.csv update
- **config** updated SHAPE SDP scenarios in scenario_config.csv
- **scripts** FSDP_collect FSDP_process fsec.R updates

### added
- **renv** MAgPIE now runs in an isolated, stable, reproducible R package environment
- **scripts** added output script that generates a short mif containing only variables relevant for the REMIND coupling
- **scripts** added output script that generates subnational validation outputs for fable_India projects
- **setup** required R packages are automatically installed


## [4.6.1] - 2022-12-13

### changed
Expand Down Expand Up @@ -54,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **config** changed default value for s56_limit_ch4_n2o_price from 1000 to 4000 for consistency with c57_macc_version = "PBL_2022"
- **scripts** rewrite of land conversion cost calibration script `landconversion_cost.R`


## [4.6.0] - 2022-11-09

### changed
Expand Down Expand Up @@ -222,6 +245,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **scripts** fixed configuration error in FSEC output scripts, FSEC_dietaryIndicators.R and FSEC_environmentalPollutants.R
- **scripts** scripts/start/extra/emulator.R Throw an error if no file can be found to take the GHG prices from


## [4.4.0] - 2021-12-13

### changed
Expand Down Expand Up @@ -312,6 +336,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **73_timber** plausible cost for balance variable in case of s73_timber_demand_switch = 0 to avoid cost distortion
- **56_ghg_policy** choose the correct scenario for fixing the GHG prices until sm_fix_SSP2


## [4.3.5] - 2021-09-02

### changed
Expand Down Expand Up @@ -380,6 +405,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- - **15_food** single-cell protein substitution scenarios included in intersolve.gms.
- **20_processing** The "mixed" scenario for single-cell protein production (c20_scp_type) was not working as expected. The corresponding code in 20_processing has been updated.


## [4.3.3] - 2021-03-30

### added
Expand Down Expand Up @@ -439,6 +465,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **32_forestry** Bugfixes for "ac_est" and carbon treshold afforestation; removed plantations from "vm_cdr_aff".
- **core** bugfix m_fillmissingyears macro; was running over t before; now running over t_all_


## [4.3.1] - 2020-11-03

### added
Expand Down Expand Up @@ -477,6 +504,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **35_natveg** Clearer calculations for harvested area for timber production.
- **52_carbon** Fix to the Carbon densities received from LPJmL for timber plantations.


## [4.2.1] - 2020-05-15

### added
Expand All @@ -494,7 +522,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **NPI/NDC policy calculations** revision of calculation method



## [4.2.0] - 2020-04-15

This release version is focussed on consistency between the MAgPIE setup and the [REMIND model] and result of a validation exercise of the coupled (REMIND 2.1)-(MAgPIE 4.2) system.
Expand Down Expand Up @@ -575,6 +602,7 @@ This release version is focussed on consistency between the MAgPIE setup and the
- **71_diagg_lvst** adjusted monogastric disaggregation for more flexiblity to avoid infeasibilities with EFPs (see 42_water_demand)
- **15_food** correction regarding the convergence measure of the iterative execution of the food demand model and MAgPIE; correction accounting for unusual time step length in body height calculations; body height regression parameters updated


## [4.0.1] - 2018-10-05

### fixed
Expand All @@ -586,7 +614,8 @@ This release version is focussed on consistency between the MAgPIE setup and the
First open source release of the framework. See [MAgPIE 4.0 paper](https://doi.org/10.5194/gmd-12-1299-2019) for more information.


[Unreleased]: https://github.com/magpiemodel/magpie/compare/v4.6.1...develop
[Unreleased]: https://github.com/magpiemodel/magpie/compare/v4.6.2...develop
[4.6.2]: https://github.com/magpiemodel/magpie/compare/v4.6.1...v4.6.2
[4.6.1]: https://github.com/magpiemodel/magpie/compare/v4.6.0...v4.6.1
[4.6.0]: https://github.com/magpiemodel/magpie/compare/v4.5.0...v4.6.0
[4.5.0]: https://github.com/magpiemodel/magpie/compare/v4.4.0...v4.5.0
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ authors:
email: popp@pik-potsdam.de

title: MAgPIE - An Open Source land-use modeling framework
version: 4.6.1dev
date-released: 2022-12-13
version: 4.6.2dev
date-released: 2023-01-12
repository-code: https://github.com/magpiemodel/magpie
keywords:
- landuse
Expand Down
38 changes: 38 additions & 0 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Package: magpiemodel
Imports:
callr,
citation,
curl,
data.table,
dplyr,
gdx,
gdxrrw,
ggplot2,
ggrepel,
gms,
here,
iamc,
lucode2 (>= 0.36.0),
luplot,
luscale,
lusweave,
m4fsdp,
madrat,
magclass,
magpie4,
MagpieNCGains,
magpiesets,
mip,
mrcommons,
patchwork,
piamenv (>= 0.3.4),
quitte,
raster,
remulator,
renv,
stringr,
txtplot,
withr
Suggests:
goxygen,
qgraph
40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.PHONY: help docs update-renv update-all-renv check check-fix
.DEFAULT_GOAL := help

# extracts the help text and formats it nicely
HELP_PARSING = 'm <- readLines("Makefile");\
m <- grep("\#\#", m, value=TRUE);\
command <- sub("^([^ ]*) *\#\#(.*)", "\\1", m);\
help <- sub("^([^ ]*) *\#\#(.*)", "\\2", m);\
cat(sprintf("%-8s%s", command, help), sep="\n")'

help: ## Show this help.
@Rscript -e $(HELP_PARSING)

docs: ## Generate/update model HTML documentation in the doc/ folder.
Rscript -e 'goxygen::goxygen(); warnings()'
@echo -e '\nOpen\ndoc/html/index.htm\nin your browser to view the generated documentation.'

update-renv: ## Upgrade all pik-piam packages in your renv to the respective
## latest release and write renv.lock to archive.
Rscript -e 'piamenv::updateRenv()'

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

archive-renv: ## Write renv.lock to archive.
Rscript -e 'piamenv::archiveRenv()'

restore-renv: ## Restore renv to the state described in interactively
## selected renv.lock from the archive or a run folder.
Rscript -e 'piamenv::restoreRenv()'

check: ## Check if the GAMS code follows the coding etiquette
## using gms::codeCheck.
Rscript -e 'invisible(gms::codeCheck(strict = TRUE))'

check-fix: ## Check if the GAMS code follows the coding etiquette
## and offer fixing any problems directly if possible
## using gms::codeCheck.
Rscript -e 'invisible(gms::codeCheck(strict = TRUE, interactive = TRUE))'
Loading