{
  "_id": "6a26a4e524555f66ed522fd4",
  "Package": "DIETCOST",
  "Type": "Package",
  "Title": "Calculate the Cost and Environmental Impact of a Ideal Diet",
  "Version": "1.0.0.0",
  "RoxygenNote": "7.3.1",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Description": "Easily perform a Monte Carlo simulation to evaluate the\ncost and carbon, ecological, and water footprints of a set of\nideal diets. Pre-processing tools are also available to quickly\ntreat the data, along with basic statistical features to\nanalyze the simulation results — including the ability to\nestablish confidence intervals for selected parameters, such as\nnutrients and price/emissions. A 'standard version' of the\ndatasets employed is included as well, allowing users easy\naccess to customization. This package brings to R the 'Python'\nsoftware initially developed by Vandevijvere, Young, Mackay,\nSwinburn and Gahegan (2018) <doi:10.1186/s12966-018-0648-6>.",
  "Authors@R": "c(\nperson(\"Henrique\", \"Bracarense\", , \"hbracarense@hotmail.com\", role = c(\"cre\", \"aut\"),\ncomment = c(ORCID = \"0009-0001-5964-9969\")),\nperson(\"Thais\", \"Marquezine\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-9415-5817\")),\nperson(\"Rafael\", \"Claro\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-9690-575X\"))\n)",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/hbracarense/dietcost",
  "BugReports": "https://github.com/hbracarense/dietcost/issues",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-08 11:15:07 UTC",
    "User": "root"
  },
  "Author": "Henrique Bracarense [cre, aut] (ORCID:\n<https://orcid.org/0009-0001-5964-9969>), Thais Marquezine\n[aut] (ORCID: <https://orcid.org/0000-0002-9415-5817>), Rafael\nClaro [aut] (ORCID: <https://orcid.org/0000-0001-9690-575X>)",
  "Maintainer": "Henrique Bracarense <hbracarense@hotmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-05-09 14:10:16 UTC",
  "RemoteUrl": "https://github.com/cran/DIETCOST",
  "RemoteRef": "HEAD",
  "RemoteSha": "a523dc8fe73721988674473fc0743816dc9b101e",
  "MD5sum": "1f160678d4e5209ef9aa80878d247ed2",
  "_user": "cran",
  "_type": "src",
  "_file": "DIETCOST_1.0.0.0.tar.gz",
  "_fileid": "ebff9d928b375e8b1a2fb9f373c17b73360df0c1bcec26ffa19c7092fccae24d",
  "_filesize": 273738,
  "_sha256": "ebff9d928b375e8b1a2fb9f373c17b73360df0c1bcec26ffa19c7092fccae24d",
  "_created": "2026-06-08T11:15:07.000Z",
  "_published": "2026-06-08T11:17:57.489Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80081448366,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7478661674"
    },
    {
      "job": 80081448537,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7478661620"
    },
    {
      "job": 80080614197,
      "time": 291,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7478615014"
    },
    {
      "job": 80081448352,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7478660857"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27133503919",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/DIETCOST",
  "_commit": {
    "id": "a523dc8fe73721988674473fc0743816dc9b101e",
    "author": "Henrique Bracarense <hbracarense@hotmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0.0\n",
    "time": 1746799816
  },
  "_maintainer": {
    "name": "Henrique Bracarense",
    "email": "hbracarense@hotmail.com",
    "login": "hbracarense",
    "uuid": 88412232
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "readxl",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "xlsx",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "hbracarense",
      "count": 1,
      "uuid": 88412232
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 585,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DIETCOST"
  },
  "_devurl": "https://github.com/hbracarense/dietcost",
  "_searchresults": 5,
  "_topics": [
    "openjdk"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DIETCOST.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hbracarense/dietcost",
  "_realowner": "hbracarense",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0.0",
      "date": "2025-05-09"
    }
  ],
  "_exports": [
    "%>%",
    "add_float_range",
    "add_range",
    "addConstraintData",
    "addEmissionData",
    "addFoodGroupsConstraintData",
    "addNutrientData",
    "addPriceData",
    "calculateGroupedResults",
    "calculateResults",
    "check_function",
    "check_id_defined",
    "check_match_food_price",
    "check_match_individual_diet",
    "check_min_exists",
    "check_nom_num_df",
    "check_non_num",
    "check_spelling",
    "check_variety",
    "checkLinkedFoods",
    "checks_optional_food_groups",
    "checkZeroDiff",
    "converts_dataframe",
    "convertWeeklyFoodGroups",
    "convertWeeklyNutrientTargets",
    "createFoodData",
    "createFoodGroupData",
    "createNutrientTargets",
    "createRandomMeal",
    "diff_calc",
    "energy_conversor",
    "foodData",
    "foodGroupData",
    "getDifference",
    "getFoodGroupServes",
    "getNutrients",
    "getPerc",
    "join_function",
    "monteCarlo",
    "monteCarloSimulation",
    "nutrientDataCalculation",
    "permitted_individuals",
    "priceEmissionData",
    "printResults",
    "redmeat_check",
    "remove_suffix",
    "sample_safe",
    "sauces_protein_discretionary_change",
    "standard_name_check",
    "starchy_fill",
    "treat_df",
    "treat_groups_df",
    "unique_values",
    "upload_data"
  ],
  "_datasets": [
    {
      "name": "food_groups",
      "title": "Food groups dataset example",
      "object": "food_groups",
      "class": [
        "data.frame"
      ],
      "fields": [
        "food_group",
        "food_group_id",
        "man_min_g_C",
        "man_max_g_C",
        "man_target_g_C",
        "man_min_serve_C",
        "man_max_serve_C",
        "man_target_serve_C",
        "woman_min_g_C",
        "woman_max_g_C",
        "woman_target_g_C",
        "woman_min_serve_C",
        "woman_max_serve_C",
        "woman_target_serve_C",
        "boy_min_g_C",
        "boy_max_g_C",
        "boy_target_g_C",
        "boy_min_serve_C",
        "boy_max_serve_C",
        "boy_target_serve_C",
        "girl_min_g_C",
        "girl_max_g_C",
        "girl_target_g_C",
        "girl_min_serve_C",
        "girl_max_serve_C",
        "girl_target_serve_C",
        "man_min_g_PF",
        "man_max_g_PF",
        "man_target_g_PF",
        "man_min_serve_PF",
        "man_max_serve_PF",
        "man_target_serve_PF",
        "woman_min_g_PF",
        "woman_max_g_PF",
        "woman_target_g_PF",
        "woman_min_serve_PF",
        "woman_max_serve_PF",
        "woman_target_serve_PF",
        "boy_min_g_PF",
        "boy_max_g_PF",
        "boy_target_g_PF",
        "boy_min_serve_PF",
        "boy_max_serve_PF",
        "boy_target_serve_PF",
        "girl_min_g_PF",
        "girl_max_g_PF",
        "girl_target_g_PF",
        "girl_min_serve_PF",
        "girl_max_serve_PF",
        "girl_target_serve_PF",
        "man_min_g_H",
        "man_max_g_H",
        "man_target_g_H",
        "man_min_serve_H",
        "man_max_serve_H",
        "man_target_serve_H",
        "woman_min_g_H",
        "woman_max_g_H",
        "woman_target_g_H",
        "woman_min_serve_H",
        "woman_max_serve_H",
        "woman_target_serve_H",
        "boy_min_g_H",
        "boy_max_g_H",
        "boy_target_g_H",
        "boy_min_serve_H",
        "boy_max_serve_H",
        "boy_target_serve_H",
        "girl_min_g_H",
        "girl_max_g_H",
        "girl_target_g_H",
        "girl_min_serve_H",
        "girl_max_serve_H",
        "girl_target_serve_H"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    },
    {
      "name": "foods",
      "title": "Foods dataset example",
      "object": "foods",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "food_group",
        "food_group_id",
        "food_name",
        "food_id",
        "variety",
        "redmeat",
        "CF_gCO2eq",
        "WF_l",
        "EF_g_m2",
        "serve_size_C",
        "man_min_C",
        "woman_min_C",
        "boy_min_C",
        "girl_min_C",
        "man_max_C",
        "woman_max_C",
        "boy_max_C",
        "girl_max_C",
        "serve_size_PF",
        "man_min_PF",
        "woman_min_PF",
        "boy_min_PF",
        "girl_min_PF",
        "man_max_PF",
        "woman_max_PF",
        "boy_max_PF",
        "girl_max_PF",
        "serve_size_H",
        "man_min_H",
        "woman_min_H",
        "boy_min_H",
        "girl_min_H",
        "man_max_H",
        "woman_max_H",
        "boy_max_H",
        "girl_max_H",
        "energy_kj_g",
        "fat_g",
        "sat_fat_g",
        "CHO_g",
        "sugars_g",
        "fibre_g",
        "protein_g",
        "sodium_mg",
        "price"
      ],
      "rows": 99,
      "table": true,
      "tojson": true
    },
    {
      "name": "nutrient_targets",
      "title": "Nutrients dataset example",
      "object": "nutrient_targets",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "individual",
        "diet",
        "energy_kj_min",
        "energy_kj_max",
        "fat_grams_min",
        "fat_grams_max",
        "sat_fat_grams_min",
        "sat_fat_grams_max",
        "CHO_grams_min",
        "CHO_grams_max",
        "sugars_grams_min",
        "sugars_grams_max",
        "fibre_grams_min",
        "fibre_grams_max",
        "protein_grams_min",
        "protein_grams_max",
        "sodium_mgrams_min",
        "sodium_mgrams_max",
        "protein_perc_min",
        "protein_perc_max",
        "sat_fat_perc_min",
        "sat_fat_perc_max",
        "fat_perc_min",
        "fat_perc_max",
        "CHO_perc_min",
        "CHO_perc_max",
        "redmeat_grams_min",
        "redmeat_grams_max",
        "fruit_serve_min",
        "fruit_serve_max",
        "starchy_veg_serve_min",
        "starchy_veg_serve_max",
        "veg_serve_min",
        "veg_serve_max",
        "dairy_serve_min",
        "dairy_serve_max",
        "grain_serve_min",
        "grain_serve_max",
        "protein_serve_min",
        "protein_serve_max",
        "sugars_perc_min",
        "sugars_perc_max",
        "alcohol_perc_min",
        "alcohol_perc_max",
        "discretionary_perc_min",
        "discretionary_perc_max",
        "takeaway_perc_min",
        "takeaway_perc_max"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_float_range",
      "title": "Float range",
      "topics": [
        "add_float_range"
      ]
    },
    {
      "page": "add_range",
      "title": "Discrete range",
      "topics": [
        "add_range"
      ]
    },
    {
      "page": "addConstraintData",
      "title": "Food constraint data addition",
      "topics": [
        "addConstraintData"
      ]
    },
    {
      "page": "addEmissionData",
      "title": "Emission data addition",
      "topics": [
        "addEmissionData"
      ]
    },
    {
      "page": "addFoodGroupsConstraintData",
      "title": "Food group constraint data addition",
      "topics": [
        "addFoodGroupsConstraintData"
      ]
    },
    {
      "page": "addNutrientData",
      "title": "Nutrients data addition",
      "topics": [
        "addNutrientData"
      ]
    },
    {
      "page": "addPriceData",
      "title": "Price data addition",
      "topics": [
        "addPriceData"
      ]
    },
    {
      "page": "calculateGroupedResults",
      "title": "Calculates grouped results for a Monte Carlo Simulation",
      "topics": [
        "calculateGroupedResults"
      ]
    },
    {
      "page": "calculateResults",
      "title": "Calculates results for a Monte Carlo Simulation",
      "topics": [
        "calculateResults"
      ]
    },
    {
      "page": "check_function",
      "title": "Missing value check",
      "topics": [
        "check_function"
      ]
    },
    {
      "page": "check_id_defined",
      "title": "ID mismatch check",
      "topics": [
        "check_id_defined"
      ]
    },
    {
      "page": "check_match_food_price",
      "title": "Food/price mismatch check",
      "topics": [
        "check_match_food_price"
      ]
    },
    {
      "page": "check_match_individual_diet",
      "title": "Individual/diet mismatch check",
      "topics": [
        "check_match_individual_diet"
      ]
    },
    {
      "page": "check_min_exists",
      "title": "Minimum intake food groups check",
      "topics": [
        "check_min_exists"
      ]
    },
    {
      "page": "check_nom_num_df",
      "title": "Applies non-nummeric value check to entire dataframe",
      "topics": [
        "check_nom_num_df"
      ]
    },
    {
      "page": "check_non_num",
      "title": "Non-numeric check",
      "topics": [
        "check_non_num"
      ]
    },
    {
      "page": "check_spelling",
      "title": "Spellcheck",
      "topics": [
        "check_spelling"
      ]
    },
    {
      "page": "check_variety",
      "title": "Variety check",
      "topics": [
        "check_variety"
      ]
    },
    {
      "page": "checkLinkedFoods",
      "title": "Linked foods check",
      "topics": [
        "checkLinkedFoods"
      ]
    },
    {
      "page": "checks_optional_food_groups",
      "title": "Optional food groups check",
      "topics": [
        "checks_optional_food_groups"
      ]
    },
    {
      "page": "checkZeroDiff",
      "title": "All zero difference check",
      "topics": [
        "checkZeroDiff"
      ]
    },
    {
      "page": "converts_dataframe",
      "title": "Weekly conversion",
      "topics": [
        "converts_dataframe"
      ]
    },
    {
      "page": "convertWeeklyFoodGroups",
      "title": "Food group serves conversion",
      "topics": [
        "convertWeeklyFoodGroups"
      ]
    },
    {
      "page": "convertWeeklyNutrientTargets",
      "title": "Nutrient targets conversion",
      "topics": [
        "convertWeeklyNutrientTargets"
      ]
    },
    {
      "page": "createFoodData",
      "title": "Food data creation",
      "topics": [
        "createFoodData"
      ]
    },
    {
      "page": "createFoodGroupData",
      "title": "Food group data creation",
      "topics": [
        "createFoodGroupData"
      ]
    },
    {
      "page": "createNutrientTargets",
      "title": "Nutrients data addition",
      "topics": [
        "createNutrientTargets"
      ]
    },
    {
      "page": "createRandomMeal",
      "title": "Random meal plan",
      "topics": [
        "createRandomMeal"
      ]
    },
    {
      "page": "diff_calc",
      "title": "Difference calculator",
      "topics": [
        "diff_calc"
      ]
    },
    {
      "page": "energy_conversor",
      "title": "MJ to KJ conversion",
      "topics": [
        "energy_conversor"
      ]
    },
    {
      "page": "food_groups",
      "title": "Food groups dataset example",
      "topics": [
        "food_groups"
      ]
    },
    {
      "page": "foodData",
      "title": "Single-function food dataframe creation",
      "topics": [
        "foodData"
      ]
    },
    {
      "page": "foodGroupData",
      "title": "Single-function food group dataframe creation",
      "topics": [
        "foodGroupData"
      ]
    },
    {
      "page": "foods",
      "title": "Foods dataset example",
      "topics": [
        "foods"
      ]
    },
    {
      "page": "getDifference",
      "title": "General difference calculation",
      "topics": [
        "getDifference"
      ]
    },
    {
      "page": "getFoodGroupServes",
      "title": "Food group serves calculator",
      "topics": [
        "getFoodGroupServes"
      ]
    },
    {
      "page": "getNutrients",
      "title": "Nutrients values calculator",
      "topics": [
        "getNutrients"
      ]
    },
    {
      "page": "getPerc",
      "title": "Percentage values calculator",
      "topics": [
        "getPerc"
      ]
    },
    {
      "page": "join_function",
      "title": "Join function",
      "topics": [
        "join_function"
      ]
    },
    {
      "page": "monteCarlo",
      "title": "Monte Carlo simulation",
      "topics": [
        "monteCarlo"
      ]
    },
    {
      "page": "monteCarloSimulation",
      "title": "Single-function Monte Carlo simulation and results export.",
      "topics": [
        "monteCarloSimulation"
      ]
    },
    {
      "page": "nutrient_targets",
      "title": "Nutrients dataset example",
      "topics": [
        "nutrient_targets"
      ]
    },
    {
      "page": "nutrientDataCalculation",
      "title": "Nutrient data application to random meal plan created",
      "topics": [
        "nutrientDataCalculation"
      ]
    },
    {
      "page": "permitted_individuals",
      "title": "Permitted individuals check",
      "topics": [
        "permitted_individuals"
      ]
    },
    {
      "page": "priceEmissionData",
      "title": "Price/emission data application to random meal plan created",
      "topics": [
        "priceEmissionData"
      ]
    },
    {
      "page": "printResults",
      "title": "Exportation of Monte Carlo results",
      "topics": [
        "printResults"
      ]
    },
    {
      "page": "random_plan",
      "title": "Random deletion",
      "topics": [
        "random_plan"
      ]
    },
    {
      "page": "redmeat_check",
      "title": "Redmeat flag",
      "topics": [
        "redmeat_check"
      ]
    },
    {
      "page": "remove_suffix",
      "title": "Suffix removal",
      "topics": [
        "remove_suffix"
      ]
    },
    {
      "page": "sample_safe",
      "title": "Safe sampling",
      "topics": [
        "sample_safe"
      ]
    },
    {
      "page": "sauces_protein_discretionary_change",
      "title": "Sauces, protein and discretionary food groups treatment",
      "topics": [
        "sauces_protein_discretionary_change"
      ]
    },
    {
      "page": "standard_name_check",
      "title": "Standard name check",
      "topics": [
        "standard_name_check"
      ]
    },
    {
      "page": "starchy_fill",
      "title": "Starchy vegetables serves addition",
      "topics": [
        "starchy_fill"
      ]
    },
    {
      "page": "treat_df",
      "title": "Pre-treatment of constraint data",
      "topics": [
        "treat_df"
      ]
    },
    {
      "page": "treat_groups_df",
      "title": "Treatment of food group constraints dataframe",
      "topics": [
        "treat_groups_df"
      ]
    },
    {
      "page": "unique_values",
      "title": "Unique value check",
      "topics": [
        "unique_values"
      ]
    },
    {
      "page": "upload_data",
      "title": "Data upload",
      "topics": [
        "upload_data"
      ]
    }
  ],
  "_readme": "https://github.com/cran/DIETCOST/raw/HEAD/README.md",
  "_rundeps": [
    "cellranger",
    "cli",
    "cpp11",
    "crayon",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "readxl",
    "rematch",
    "rJava",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "xlsx",
    "xlsxjars"
  ],
  "_sysdeps": [
    {
      "shlib": "libjvm",
      "package": "openjdk-21-jre-headless",
      "headers": "openjdk-21-jre-headless",
      "source": "openjdk",
      "version": "21.0.11+10-1~24.04.2",
      "name": "openjdk",
      "homepage": "https://openjdk.java.net/",
      "description": "OpenJDK Java runtime, using Hotspot JIT (headless)"
    }
  ],
  "_score": 1.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "dietcost",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://hbracarense.r-universe.dev/DIETCOST",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.0",
      "date": "2026-06-08T11:17:10.000Z",
      "distro": "noble",
      "commit": "a523dc8fe73721988674473fc0743816dc9b101e",
      "fileid": "75c62c1529c05787bc14cc069609874c5bfab671680b517782cfd4788e1f11f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27133503919"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0.0",
      "date": "2026-06-08T11:17:08.000Z",
      "distro": "noble",
      "commit": "a523dc8fe73721988674473fc0743816dc9b101e",
      "fileid": "9bfb19ab826a36171d0cfaa4d3abf51c02f210b6c6bf80e33c0289f9f3821124",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27133503919"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0.0",
      "date": "2026-06-08T11:17:35.000Z",
      "commit": "a523dc8fe73721988674473fc0743816dc9b101e",
      "fileid": "6a6ee97fd2a3a0e771fe99fbeca48fc98e95e9913b9928d0e6b3793f45f46c92",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27133503919"
    }
  ]
}