Package: piamInterfaces 0.36.10

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.36.10.tar.gz
piamInterfaces_0.36.10.zip(r-4.5)piamInterfaces_0.36.10.zip(r-4.4)piamInterfaces_0.36.10.zip(r-4.3)
piamInterfaces_0.36.10.tgz(r-4.4-any)piamInterfaces_0.36.10.tgz(r-4.3-any)
piamInterfaces_0.36.10.tar.gz(r-4.5-noble)piamInterfaces_0.36.10.tar.gz(r-4.4-noble)
piamInterfaces_0.36.4.tgz(r-4.4-emscripten)piamInterfaces_0.36.10.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:

6.37 score 7 packages 32 scripts 34 exports 116 dependencies

Last updated 2 days agofrom:65e6abf158. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winOKNov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:areUnitsIdenticalcheckFixUnitscheckIIASASubmissioncheckMissingVarscheckNGFScheckSummationscheckSummationsRegionalcheckUnitFactorcheckVarNamesconvertHistoricalDataextractReferenceYearfillMissingSummationsfillSummationPairsfixOnRefgenerateIIASASubmissiongetMappinggetMappingVariablesgetREMINDTemplateVariablesgetSummationsgetTemplateloadIIASATemplatemappingNamesniceroundplotIntercomparisonpriceIndicesAddpriceIndicesFixpriceIndicesIIASAreadMifsremovePlusrenameOldVariablessummationsNamessumNamesWithFactorstemplateNamesvariableInfo

Dependencies:abindaskpassbase64encbitbit64bslibcachemcallrcellrangerclicliprcolorspacecommonmarkcountrycodecpp11crayoncrosstalkcurldata.tabledescdigestdplyrevaluatefansifarverfastmapfilelockfontawesomeforcatsfsGDPucgenericsggplot2gluegmsgridExtragtablehighrhmshtmltoolshtmlwidgetshttpuvhttrisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclelubridatelusweavemagclassmagrittrMASSMatrixmemoisemgcvmimemipmunsellnlmeopensslpiamutilspillarpkgbuildpkgconfigpkgloadplotlyplyrprettyunitsprocessxprogresspromisespspurrrqualVquitteR6rappdirsRColorBrewerRcppreadrreadxlrematchreshape2rlangrmarkdownrprojrootsassscalesshinysourcetoolsstringistringrsystibbletidyrtidyselecttimechangetinytextrafficlighttzdbutf8vctrsviridisLitevroomwithrwritexlxfunxtableyamlzoo

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 whether all variables required by mapping are present in mifdata for given sourcecheckMissingVars
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