Package: CRIO 1.1.0

Abhijeet Mishra

CRIO: Risk and Gap Analysis for the CGIAR Research Investment Opportunities Report

Reads IMPACT model scenario results (via GFSir) and builds the risk and gap analysis used in the Research Investment Opportunities (RIO) report: hunger, diet, nutrient adequacy and blue water indicators against targets; pathway analysis across socioeconomic and climate scenarios; maps, target trajectories and comparisons of Breeding For Tomorrow (B4T) scenarios against the baseline.

Authors:Abhijeet Mishra [aut, cre], Claude [aut]

CRIO_1.1.0.tar.gz
CRIO_1.1.0.zip(r-4.7-any)CRIO_1.1.0.zip(r-4.6-any)CRIO_1.1.0.zip(r-4.5-any)
CRIO_1.1.0.tgz(r-4.6-any)CRIO_1.1.0.tgz(r-4.5-any)
CRIO_1.1.0.tar.gz(r-4.7-any)CRIO_1.1.0.tar.gz(r-4.6-any)
CRIO_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
CRIO/json (API)

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

Bug tracker:https://github.com/ifpri/crio/issues

On CRAN:

Conda:

1.70 score 9 scripts 54 exports 194 dependencies

Last updated from:cda2b478a7. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK223
source / vignettesOK272
linux-releaseOK224
macos-releaseOK145
macos-oldrelOK158
windows-develOK179
windows-releaseOK176
windows-oldrelOK172
wasm-releaseOK119

Exports:add_scenario_colsaquatic_nutrient_per_kgb4t_levelsb4t_regionsbuild_b4t_comparisonbuild_b4t_comparisonsbuild_pathway_analysiscg_lookupclimate_counterpartcrio_baseline_idcrio_plot_alldefault_pathwaysexclude_cmdtyextract_rulesfat_kcal_sharefilter_climatefood_groupsget_aderget_caloriesget_fat_shareget_foodavailget_frtvegget_hungerget_mderget_minkcalget_nutrient_adequacyget_sugar_shareget_waterindicator_specslist_scenariosload_crio_dataload_region_mapnutrient_labelsnutrient_quantity_specsown_cg_regionplot_b4t_gap_closedplot_b4t_gap_mapsplot_b4t_heatmapplot_gap_overviewplot_indicator_mapsplot_pct_hitsplot_region_treeplot_rules_heatmapplot_spec_trajectoriesplot_target_trajectoriesread_scenariosrelabel_scenariosrni_lookuprow_countriessave_crio_datascenario_idselect_scenariossummarise_rulesworld_outline

Dependencies:abindaskpassbackportsbase64encbootbrewbriobroombslibcachemcallrcarcarDatacellrangerclassclassIntclicliprcodetoolscollapsecollectionscolorspacecommonmarkcorrplotcowplotcpp11crayoncredentialscurldata.tableDBIDerivdescdevtoolsdiffobjdigestdoByDOORMATdownlitdplyrdrate1071ellipsisevaluatefansifarverfastmapfontawesomeforcatsforecastFormulafracdifffsgamstransfergenericsgertGFSirggplot2ggpubrggrepelggsciggsignifgitcredsgluegridExtragtablehighrhmshtmltoolshtmlwidgetshttpuvhttr2iniisobandjanitorjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelifecyclelintrlme4lmtestlubridatemagrittrmapsMASSMatrixMatrixModelsmemoisemgcvmimeminiUIminqamodelrnlmenloptrnnetnumDerivopensslopenxlsx2otelpakpbkrtestpillarpkgbuildpkgconfigpkgdownpkgloadpolynompraiseprettyunitsprocessxprofvisprogresspromisesproxypspurrrquantregR.methodsS3R.ooR.utilsR6raggrappdirsrbibutilsrcmdcheckRColorBrewerRcppRcppArmadilloRcppEigenRdpackrdtoolsreadxlreformulasrematchrexrlangrmarkdownroxygen2rpartrpart.plotrprojrootrstatixrstudioapirversionss2S7sassscalessessioninfosfshinysnakecasesourcetoolsSparseMstringistringrsurvivalsyssystemfontsterratestthattextshapingtibbletidyrtidyselecttidyterratimechangetimeDatetinytexunitsurcaurlcheckerusethisutf8vctrsviridisLitewaldowhiskerwithrwkxfunxml2xmlparsedataxopenxtableyamlzipzoo

Readme and manuals

Help Manual

Help pageTopics
Add scenario descriptor columnsadd_scenario_cols
Placeholder nutrient values per kg for aquatic foodsaquatic_nutrient_per_kg
Factor levels for the B4T scenario columnb4t_levels
CGIAR regions where Breeding For Tomorrow (B4T) is implementedb4t_regions
Compare B4T scenarios with their climate counterfactualbuild_b4t_comparison
B4T comparisons for a list of indicator specsbuild_b4t_comparisons
Pathway analysis: which scenarios hit a targetbuild_pathway_analysis
Country to CG region lookupcg_lookup
Climate run matching a scenarioclimate_counterpart
Default baseline scenariocrio_baseline_id
Make all RIO figurescrio_plot_all
Default pathway names by SSP and RCPdefault_pathways
Commodities excluded from nutrient availabilityexclude_cmdty
Extract rules from a classification treeextract_rules
Share of calories from fat by commodityfat_kcal_share
Keep the climate ensemble onlyfilter_climate
Food groups used for calorie and water totalsfood_groups
Total calories against the average dietary energy requirement (ADER)get_ader
Per capita calories by commodity, with totals and sharesget_calories
Approximate share of calories from fatget_fat_share
Food availability (all commodities and food groups)get_foodavail
Fruit and vegetable availability (g/person/day)get_frtveg
Population at risk of hungerget_hunger
Total calories against the minimum dietary energy requirement (MDER)get_mder
Minimum calorie requirement by countryget_minkcal
Nutrient availability and adequacy ratiosget_nutrient_adequacy
Share of calories from sugarget_sugar_share
Blue water use, with totals, shares and ratio to 2025get_water
Indicator specificationsindicator_specs
List scenario GDX fileslist_scenarios
Build all RIO indicator datasetsload_crio_data
Load the IMPACT region shapefileload_region_map
Display names for nutrient codesnutrient_labels
Nutrient quantity specificationsnutrient_quantity_specs
CG region a region code belongs toown_cg_region
Share of the baseline gap closed by each B4T runplot_b4t_gap_closed
Maps of the target gap: baseline vs one B4T runplot_b4t_gap_maps
Heatmap of B4T effects: region x where B4T is implementedplot_b4t_heatmap
Distance-to-target overview across indicatorsplot_gap_overview
Four-panel indicator mapsplot_indicator_maps
Bar chart of the share of scenarios hitting a targetplot_pct_hits
Plot the classification tree for one regionplot_region_tree
Heatmap of tree rules across regionsplot_rules_heatmap
Trajectories for one indicator specplot_spec_trajectories
Indicator trajectories against a targetplot_target_trajectories
Read one GFSir indicator for many scenariosread_scenarios
Relabel scenarios in all datasetsrelabel_scenarios
Recommended nutrient intakes (RNI)rni_lookup
Rest-of-world countries greyed out on mapsrow_countries
Save indicator datasets as RDS and/or CSVsave_crio_data
Scenario id from a GDX file pathscenario_id
Select scenarios in all datasetsselect_scenarios
Summarise tree rules by region and outcomesummarise_rules
World country outline for map bordersworld_outline