-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2a54a7
commit 6ee0c2a
Showing
8 changed files
with
63 additions
and
7 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,7 +1,7 @@ | ||
Type: Package | ||
Package: piamPlotComparison | ||
Title: Create comparison plots for your model results | ||
Version: 0.0.9 | ||
Version: 0.0.10 | ||
Date: 2024-04-23 | ||
Authors@R: c( | ||
person("Falk", "Benke", , "[email protected]", role = c("aut", "cre")), | ||
|
@@ -12,6 +12,7 @@ License: LGPL-3 | |
URL: https://github.com/pik-piam/piamPlotComparison | ||
Imports: | ||
dplyr, | ||
jsonlite, | ||
knitr, | ||
magclass, | ||
mip (>= 0.148.11), | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#' Get the List of cs2 Profiles | ||
#' | ||
#' A list of arguments to \code{\link{compareScenarios}} is called a (cs2-) | ||
#' profile. This function loads a list of such profiles from a file. The default | ||
#' argument is set such that the default profiles file of REMIND is loaded. | ||
#' | ||
#' @param path \code{character(1)}. Path to the profiles file. | ||
#' @return A named list of profiles. The names are the names of the respective | ||
#' profile. Each profile is a named list. Those names correspond to arguments | ||
#' of \code{\link{compareScenarios}}. | ||
#' @author Christof Schoetz | ||
#' @examples | ||
#' \dontrun{ | ||
#' profiles <- getCs2Profiles() # load from default location | ||
#' profiles <- getCs2Profiles(path = "path/to/profiles.json") | ||
#' } | ||
#' @export | ||
getCs2Profiles <- function(path = "./scripts/cs2/profiles.json") { | ||
path <- normalizePath(path, mustWork = TRUE) | ||
profiles <- jsonlite::read_json(path, simplifyVector = FALSE) | ||
# Remove entries starting with "_". They are treated as comments. | ||
profiles <- profiles[!startsWith(names(profiles), "_")] | ||
return(profiles) | ||
} |
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,6 +1,6 @@ | ||
# Create comparison plots for your model results | ||
|
||
R package **piamPlotComparison**, version **0.0.9** | ||
R package **piamPlotComparison**, version **0.0.10** | ||
|
||
[![CRAN status](https://www.r-pkg.org/badges/version/piamPlotComparison)](https://cran.r-project.org/package=piamPlotComparison) [![R build status](https://github.com/pik-piam/piamPlotComparison/workflows/check/badge.svg)](https://github.com/pik-piam/piamPlotComparison/actions) [![codecov](https://codecov.io/gh/pik-piam/piamPlotComparison/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/piamPlotComparison) [![r-universe](https://pik-piam.r-universe.dev/badges/piamPlotComparison)](https://pik-piam.r-universe.dev/builds) | ||
|
||
|
@@ -46,7 +46,7 @@ In case of questions / problems please contact Falk Benke <[email protected]> | |
|
||
To cite package **piamPlotComparison** in publications use: | ||
|
||
Benke F, Schoetz C (2024). _piamPlotComparison: Create comparison plots for your model results_. R package version 0.0.9, <https://github.com/pik-piam/piamPlotComparison>. | ||
Benke F, Schoetz C (2024). _piamPlotComparison: Create comparison plots for your model results_. R package version 0.0.10, <https://github.com/pik-piam/piamPlotComparison>. | ||
|
||
A BibTeX entry for LaTeX users is | ||
|
||
|
@@ -55,7 +55,7 @@ A BibTeX entry for LaTeX users is | |
title = {piamPlotComparison: Create comparison plots for your model results}, | ||
author = {Falk Benke and Christof Schoetz}, | ||
year = {2024}, | ||
note = {R package version 0.0.9}, | ||
note = {R package version 0.0.10}, | ||
url = {https://github.com/pik-piam/piamPlotComparison}, | ||
} | ||
``` |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.