-
Notifications
You must be signed in to change notification settings - Fork 21
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 #417 from ahagen-pik/master
Update README and Tutorial
- Loading branch information
Showing
5 changed files
with
10 additions
and
16 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: piamInterfaces | ||
Title: Project specific interfaces to REMIND / MAgPIE | ||
Version: 0.38.3 | ||
Version: 0.38.4 | ||
Date: 2024-12-17 | ||
Authors@R: c( | ||
person("Falk", "Benke", , "[email protected]", role = c("aut", "cre")), | ||
|
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 @@ | ||
# Project specific interfaces to REMIND / MAgPIE | ||
|
||
R package **piamInterfaces**, version **0.38.3** | ||
R package **piamInterfaces**, version **0.38.4** | ||
|
||
[![CRAN status](https://www.r-pkg.org/badges/version/piamInterfaces)](https://cran.r-project.org/package=piamInterfaces) [![R build status](https://github.com/pik-piam/piamInterfaces/workflows/check/badge.svg)](https://github.com/pik-piam/piamInterfaces/actions) [![codecov](https://codecov.io/gh/pik-piam/piamInterfaces/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/piamInterfaces) [![r-universe](https://pik-piam.r-universe.dev/badges/piamInterfaces)](https://pik-piam.r-universe.dev/builds) | ||
|
||
|
@@ -47,7 +47,7 @@ To edit a mapping in `R`, use: | |
``` | ||
mappingdata <- getMapping("AR6") | ||
... | ||
write.csv2(mappingdata, "test.csv", na = "", row.names = FALSE, quote = FALSE) | ||
write.table(mappingdata, "inst/mappings/test_mapping.csv", na = "", dec = ".", sep = ";", row.names = FALSE, quote = FALSE) | ||
``` | ||
|
||
Opening the csv files in Excel can be problematic, as it sometimes changes values and quotation marks. | ||
|
@@ -61,10 +61,7 @@ You can edit the files in LibreOffice Calc using these settings in the Text Impo | |
- String Delimiter: (none) | ||
|
||
The github diff on a large semicolon-separated file is often unreadable. | ||
For a human-readable output, save the old version of the mapping and run: | ||
``` | ||
remind2::compareScenConf(fileList = c("oldfile.csv", "mappingfile.csv"), row.names = NULL) | ||
``` | ||
|
||
### Creating a new mapping | ||
|
||
Since templates contain between several hundreds and a few thousand variables, relying on existing mappings can save substantial amounts of work compared to setting up a new mapping from scratch. Since the template itself is most likely built based on earlier templates from other projects, chances are good that existing mappings already provide parts of the required new mapping. Using `R`, we describe a simple way to create a new mapping `mapping_NEW.csv` based on existing mappings. | ||
|
@@ -120,7 +117,7 @@ In case of questions / problems please contact Falk Benke <[email protected]> | |
|
||
To cite package **piamInterfaces** in publications use: | ||
|
||
Benke F, Richters O (2024). _piamInterfaces: Project specific interfaces to REMIND / MAgPIE_. R package version 0.38.3, <https://github.com/pik-piam/piamInterfaces>. | ||
Benke F, Richters O (2024). _piamInterfaces: Project specific interfaces to REMIND / MAgPIE_. R package version 0.38.4, <https://github.com/pik-piam/piamInterfaces>. | ||
|
||
A BibTeX entry for LaTeX users is | ||
|
||
|
@@ -129,7 +126,7 @@ A BibTeX entry for LaTeX users is | |
title = {piamInterfaces: Project specific interfaces to REMIND / MAgPIE}, | ||
author = {Falk Benke and Oliver Richters}, | ||
year = {2024}, | ||
note = {R package version 0.38.3}, | ||
note = {R package version 0.38.4}, | ||
url = {https://github.com/pik-piam/piamInterfaces}, | ||
} | ||
``` |
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