Package: piamInterfaces 0.27.1

Falk Benke

piamInterfaces: Project specific interfaces to REMIND / MAgPIE

Project specific interfaces to REMIND / MAgPIE.

Authors:Falk Benke [aut, cre], Oliver Richters [aut]

piamInterfaces_0.27.1.tar.gz
piamInterfaces_0.27.1.zip(r-4.5)piamInterfaces_0.27.1.zip(r-4.4)piamInterfaces_0.27.1.zip(r-4.3)
piamInterfaces_0.27.1.tgz(r-4.4-any)piamInterfaces_0.27.1.tgz(r-4.3-any)
piamInterfaces_0.27.1.tar.gz(r-4.5-noble)piamInterfaces_0.27.1.tar.gz(r-4.4-noble)
piamInterfaces_0.27.1.tgz(r-4.4-emscripten)piamInterfaces_0.27.1.tgz(r-4.3-emscripten)
piamInterfaces.pdf |piamInterfaces.html
piamInterfaces/json (API)

# Install 'piamInterfaces' in R:
install.packages('piamInterfaces', repos = c('https://pik-piam.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pik-piam/piaminterfaces/issues

On CRAN:

33 exports 3.54 score 115 dependencies 7 dependents 27 scripts

Last updated 1 days agofrom:59cb993e44. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 06 2024
R-4.5-winOKSep 06 2024
R-4.5-linuxOKSep 06 2024
R-4.4-winOKSep 06 2024
R-4.4-macOKSep 06 2024
R-4.3-winOKSep 06 2024
R-4.3-macOKSep 06 2024

Exports:areUnitsIdenticalcheckFixUnitscheckIIASASubmissioncheckNGFScheckSummationscheckSummationsRegionalcheckUnitFactorcheckVarNamesconvertHistoricalDataextractReferenceYearfillMissingSummationsfillSummationPairsfixOnRefgenerateIIASASubmissiongetMappinggetMappingVariablesgetREMINDTemplateVariablesgetSummationsgetTemplateloadIIASATemplatemappingNamesniceroundplotIntercomparisonpriceIndicesAddpriceIndicesFixpriceIndicesIIASAreadMifsremovePlusrenameOldVariablessummationsNamessumNamesWithFactorstemplateNamesvariableInfo

Dependencies:abindaskpassbase64encbitbit64bslibcachemcallrcellrangerclicliprcolorspacecommonmarkcountrycodecpp11crayoncrosstalkcurldata.tabledescdigestdplyrevaluatefansifarverfastmapfilelockfontawesomeforcatsfsgenericsggplot2gluegmsgridExtragtablehighrhmshtmltoolshtmlwidgetshttpuvhttrisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclelubridatelusweavemagclassmagrittrMASSMatrixmemoisemgcvmimemipmunsellnlmeopensslpiamutilspillarpkgbuildpkgconfigpkgloadplotlyplyrprettyunitsprocessxprogresspromisespspurrrqualVquitteR6rappdirsRColorBrewerRcppreadrreadxlrematchreshape2rlangrmarkdownrprojrootsassscalesshinysourcetoolsstringistringrsystibbletidyrtidyselecttimechangetinytextrafficlighttzdbutf8vctrsviridisLitevroomwithrwritexlxfunxtableyamlzoo

Readme and manuals

Help Manual

Help pageTopics
piamInterfaces: Project specific interfaces to REMIND / MAgPIEpiamInterfaces-package piamInterfaces
Check whether units are identical following a specified listareUnitsIdentical
Check units in IIASA submission by comparing mifdata to a project templatecheckFixUnits
Check IIASA submission by comparing mif data to a template file (xlsx or yaml) provided by IIASAcheckIIASASubmission
Check NGFS submission by comparing mif data to a template file (xlsx or yaml) provided by IIASAcheckNGFS
Checks for a run if the variables sum up as expected and logs spotted gapscheckSummations
Checks for a run if the regions for selected variables sum up as expectedcheckSummationsRegional
Check unit factor in templatecheckUnitFactor
checkVariablesNames checks reporting and mappings on inconsistency in variable namescheckVarNames
Converts data in historical.mif to match project-specific variables and regions so that it can be used for comparison in an intermodel comparison projectconvertHistoricalData
Extract reference year for price indices from unitextractReferenceYear
Recursively calculate additional variables based on given summations and add them to the given mif filefillMissingSummations
add missing variable values if the value can be obtained from two other reported results.fillSummationPairs
Checks for a run if it is correctly fixed on the reference run for t < startyearfixOnRef
generateIASASubmissiongenerateIIASASubmission
getMappinggetMapping
Retrieves all variables allocated to source potentially used in mappings to project variablesgetMappingVariables
legacy function to be used by remind2getREMINDTemplateVariables
Retrieves latest summation group file for a given projectgetSummations
for backwards compatibilitygetTemplate
Loads IIASA template (xlsx or yaml)loadIIASATemplate
Retrieves mapping file namesmappingNames
Model intercomparison plots: area plots based on summation groups, line plots for further variables. Creates a PDF for each model and scenario in the outputDirectoryplotIntercomparison
Add price indexpriceIndicesAdd
Fixes price indices with wrong reference yearpriceIndicesFix
Add Price|_|Index variables requested in iiasatemplate but missing in data, if Price|_ is present in data. Extracts reference year automatically from unitpriceIndicesIIASA
Pass a character vector containing filenames and directories. Returns data from all files and all '.mif' files in the directories.readMifs
Remove |+|, |++| etc. from variable namesremovePlus
add variables that are missing based on a list of formulasrenameOldVariables
Generate valid path to logFile and make sure the outputDirectory exists. If logFile is just a file name without any further path info, put logFile in outputDirectorysetLogFile
Retrieves summation group file namessummationsNames
From mappingData, return the piam_variable sum as a string for a given exportnamesumNamesWithFactors
for backwards compatibilitytemplateNames
Provide information on variable, its mappings and summation groupsvariableInfo