-
Notifications
You must be signed in to change notification settings - Fork 42
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 #494 from fbenke-pik/convergence
Add nash analysis markdown
- Loading branch information
Showing
20 changed files
with
631 additions
and
4,479 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
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,8 +1,8 @@ | ||
Type: Package | ||
Package: remind2 | ||
Title: The REMIND R package (2nd generation) | ||
Version: 1.127.0 | ||
Date: 2023-12-13 | ||
Version: 1.127.1 | ||
Date: 2023-12-15 | ||
Authors@R: c( | ||
person("Renato", "Rodrigues", , "[email protected]", role = c("aut", "cre")), | ||
person("Lavinia", "Baumstark", role = "aut"), | ||
|
@@ -42,7 +42,6 @@ URL: https://github.com/pik-piam/remind2 | |
Depends: | ||
magclass (>= 3.37) | ||
Imports: | ||
RColorBrewer, | ||
abind, | ||
assertr, | ||
data.table, | ||
|
@@ -52,10 +51,9 @@ Imports: | |
gdxrrw, | ||
ggplot2, | ||
gms, | ||
highcharter, | ||
htmltools, | ||
iamc, | ||
knitr, | ||
lubridate, | ||
lucode2 (>= 0.43.0), | ||
luplot, | ||
luscale, | ||
|
@@ -72,7 +70,6 @@ Imports: | |
rlang, | ||
rmarkdown, | ||
rmndt, | ||
scales, | ||
tibble, | ||
tidyr, | ||
tidyselect, | ||
|
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#' @title Nash Analysis | ||
#' @description Create plots visualizing nash convergence of a given REMIND run | ||
#' | ||
#' @author Falk Benke | ||
#' | ||
#' @param gdx a GDX object as created by readGDX, or the path to a gdx | ||
#' @param outputDir \code{character(1)}. The directory where the output document | ||
#' and intermediary files are created. | ||
#' @param outputFile \code{character(1)}. File name (without extension) of the | ||
#' output document to be created. | ||
#' @return The value returned by \code{\link[rmarkdown:render]{rmarkdown::render()}}. | ||
#' | ||
#' @importFrom rmarkdown render | ||
#' | ||
#' @export | ||
nashAnalysis <- function(gdx = "fulldata.gdx", outputDir = getwd(), outputFile = "Nash Analysis.html") { | ||
|
||
|
||
yamlParams <- list(gdx = normalizePath(gdx, mustWork = TRUE)) | ||
|
||
rmarkdown::render( | ||
system.file("markdown", "nashAnalysis.Rmd", package = "remind2"), | ||
output_dir = outputDir, | ||
output_file = outputFile, | ||
output_format = "html_document", | ||
params = yamlParams | ||
) | ||
} |
Oops, something went wrong.