forked from magpiemodel/magpie
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magpiemodel#534 from pfuehrlich-pik/develop
magpie release 4.6.4
- Loading branch information
Showing
209 changed files
with
3,823 additions
and
3,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
#!/usr/bin/env Rscript | ||
|
||
if(!requireNamespace("gms", quietly = TRUE)) install.packages("gms", repos = c("https://rse.pik-potsdam.de/r/packages/", "https://cloud.r-project.org")) | ||
gmsRequiredVersion <- "0.24.1" | ||
if (tryCatch(utils::packageVersion("gms") < gmsRequiredVersion, error = function(error) TRUE)) { | ||
message("gms >= ", gmsRequiredVersion, " is required, installing now...") | ||
install.packages("gms") | ||
} | ||
|
||
message("Checking files for tabs... ", appendLF = FALSE) | ||
gms::checkNoTabs(pattern = "\\.(R|Rprofile|gms|cfg|bib)$", excludeFolders = c("output", "renv", ".git")) | ||
message("done.") | ||
|
||
# run codeCheck | ||
null <- gms::codeCheck(strict=TRUE) | ||
invisible(gms::codeCheck(strict = TRUE)) | ||
message("") | ||
|
||
# make sure that files are not too big | ||
|
||
maxfilesize <- function(max=512) { | ||
files <- union(system("git ls-tree -r HEAD --name-only", intern=TRUE), | ||
system("git diff --cached --name-only", intern=TRUE)) | ||
out <- data.frame(files=files,size=round(file.size(files)/1024,2)) | ||
out <- out[!is.na(out$size),] | ||
out <- out[out$size > max,] | ||
if(nrow(out)>0) { | ||
stop(nrow(out), " files with size > ",max,"kB detected: \n",paste0(out$files," (", out$size, "kB)", collapse = "\n")) | ||
# make sure that files are not too big | ||
maxfilesize <- function(max) { | ||
files <- union(system("git ls-tree -r HEAD --name-only", intern = TRUE), | ||
system("git diff --cached --name-only", intern = TRUE)) | ||
out <- data.frame(files = files, size = round(file.size(files) / 1024, 2)) | ||
out <- out[!is.na(out$size), ] | ||
out <- out[out$size > max, ] | ||
if (nrow(out) > 0) { | ||
stop(nrow(out), " files with size > ", max, "kB detected: \n", | ||
paste0(out$files, " (", out$size, "kB)", collapse = "\n")) | ||
} | ||
message("All files are smaller than ",max,"kB\n") | ||
message("All files are smaller than ", max, "kB\n") | ||
} | ||
|
||
maxfilesize(250) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ gamslice.txt | |
/.lock | ||
|
||
/renv.lock | ||
.Rproj.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,8 +125,8 @@ authors: | |
email: [email protected] | ||
|
||
title: MAgPIE - An Open Source land-use modeling framework | ||
version: 4.6.3 | ||
date-released: 2023-01-19 | ||
version: 4.6.4 | ||
date-released: 2023-02-22 | ||
repository-code: https://github.com/magpiemodel/magpie | ||
keywords: | ||
- landuse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,8 @@ https://www.pik-potsdam.de/research/projects/activities/land-use-modelling/magpi | |
A framework description paper has been published in | ||
Geoscientific Model Development (GMD): https://doi.org/10.5194/gmd-12-1299-2019 | ||
|
||
The model documentation for version 4.6.3 can be found at | ||
https://rse.pik-potsdam.de/doc/magpie/4.6.3/ | ||
The model documentation for version 4.6.4 can be found at | ||
https://rse.pik-potsdam.de/doc/magpie/4.6.4/ | ||
|
||
A most recent version of the documentation can also be extracted from the | ||
model source code via the R package goxygen | ||
|
@@ -188,7 +188,7 @@ [email protected] | |
Please contact [email protected] | ||
|
||
## CITATION | ||
See file CITATION.cff or the [How-to-Cite section](https://rse.pik-potsdam.de/doc/magpie/4.6.3/#how-to-cite) in the model documentation for information how to cite the model. | ||
See file CITATION.cff or the [How-to-Cite section](https://rse.pik-potsdam.de/doc/magpie/4.6.4/#how-to-cite) in the model documentation for information how to cite the model. | ||
|
||
## AUTHORS | ||
See list of authors in CITATION.cff | ||
|
Oops, something went wrong.