{
  "_id": "6a21b2d5cd65a98ecbd3aebf",
  "Package": "remulator",
  "Type": "Package",
  "Title": "R emulator",
  "Version": "1.22.0",
  "Date": "2023-10-19",
  "Authors@R": "c(person(\"David\", \"Klein\", email = \"dklein@pik-potsdam.de\", role = c(\"aut\",\"cre\")))",
  "Description": "A collection of R tools for fitting model results.",
  "License": "LGPL-3 | file LICENSE",
  "URL": "https://github.com/pik-piam/remulator,\nhttps://doi.org/10.5281/zenodo.2546517",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake libgdal-dev gdal-bin libgeos-dev libglpk-dev\nmake libicu-dev libuv1-dev libxml2-dev libssl-dev libproj-dev\nlibsqlite3-dev libx11-dev zlib1g-dev",
  "Repository": "https://pik-piam.r-universe.dev",
  "Date/Publication": "2023-10-19 12:23:20 UTC",
  "RemoteUrl": "https://github.com/pik-piam/remulator",
  "RemoteRef": "HEAD",
  "RemoteSha": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 17:11:25 UTC",
    "User": "root"
  },
  "Author": "David Klein [aut, cre]",
  "Maintainer": "David Klein <dklein@pik-potsdam.de>",
  "MD5sum": "7e809934295a518cbf8c044f262f1bd0",
  "_user": "pik-piam",
  "_type": "src",
  "_file": "remulator_1.22.0.tar.gz",
  "_fileid": "490b15f81167925fb215f2b63c3f576fabfeac0f932f7ab73fe4f9556f721f20",
  "_filesize": 2115771,
  "_sha256": "490b15f81167925fb215f2b63c3f576fabfeac0f932f7ab73fe4f9556f721f20",
  "_created": "2026-06-04T17:11:25.000Z",
  "_published": "2026-06-04T17:16:05.287Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79573640197,
      "time": 238,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7418170929"
    },
    {
      "job": 79573640319,
      "time": 220,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7418164649"
    },
    {
      "job": 79573640299,
      "time": 160,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7418151297"
    },
    {
      "job": 79573640248,
      "time": 156,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7418148260"
    },
    {
      "job": 79572846478,
      "time": 251,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7418080779"
    },
    {
      "job": 79573640185,
      "time": 161,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7418142310"
    },
    {
      "job": 79573640239,
      "time": 159,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7418141966"
    },
    {
      "job": 79573640309,
      "time": 158,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7418141819"
    },
    {
      "job": 79573640250,
      "time": 154,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7418139957"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pik-piam/remulator",
  "_commit": {
    "id": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
    "author": "David Klein <dklein@pik-potsdam.de>",
    "committer": "David Klein <dklein@pik-potsdam.de>",
    "message": "increase version number\n",
    "time": 1697718200
  },
  "_maintainer": {
    "name": "David Klein",
    "email": "dklein@pik-potsdam.de",
    "login": "dklein-pik",
    "description": "",
    "uuid": 18702529
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10.0",
      "role": "Depends"
    },
    {
      "package": "gms",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "luplot",
      "role": "Imports"
    },
    {
      "package": "lusweave",
      "role": "Imports"
    },
    {
      "package": "madrat",
      "role": "Imports"
    },
    {
      "package": "magclass",
      "version": ">= 4.40",
      "role": "Imports"
    },
    {
      "package": "magpie4",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "pik-piam",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "dklein-pik",
      "count": 76,
      "uuid": 18702529
    },
    {
      "user": "johanneskoch94",
      "count": 3,
      "uuid": 43963181
    },
    {
      "user": "pfuehrlich-pik",
      "count": 3,
      "uuid": 82826417
    },
    {
      "user": "0umfhxcvx5j7joaohfss5mncnistjj6q",
      "count": 3,
      "uuid": 53254462
    },
    {
      "user": "gabriel-abrahao",
      "count": 2,
      "uuid": 30908904
    },
    {
      "user": "tscheypidi",
      "count": 1,
      "uuid": 12657494
    }
  ],
  "_userbio": {
    "uuid": 29039634,
    "type": "organization",
    "name": "Potsdam Integrated Assessment Modelling (PIAM)",
    "description": "Tools developed for use with data and models related to PIK's research."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/remulator"
  },
  "_devurl": "https://github.com/pik-piam/remulator",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/remulator.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "calc_supplycurve",
    "emulator",
    "emulator_runs_complete",
    "fill_missing_years",
    "plot_compare_supplycurves",
    "read_and_combine",
    "replace_flat_fits"
  ],
  "_datasets": [
    {
      "name": "emudata",
      "title": "emudata",
      "object": "emudata",
      "class": [
        "magpie"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bisect",
      "title": "Use bisection to find x so that myform(param, x) is close to approx_this",
      "topics": [
        "bisect"
      ]
    },
    {
      "page": "calc_supplycurve",
      "title": "Calculate points of fitted curve for plotting using fit coefficients",
      "topics": [
        "calc_supplycurve"
      ]
    },
    {
      "page": "calculate_fit",
      "title": "Calculate fit by minimizing sum of error squares",
      "topics": [
        "calculate_fit"
      ]
    },
    {
      "page": "emudata",
      "title": "emudata",
      "topics": [
        "emudata"
      ]
    },
    {
      "page": "emulator",
      "title": "Calculate and plot fit.",
      "topics": [
        "emulator"
      ]
    },
    {
      "page": "emulator_runs_complete",
      "title": "Checks whether set of given runs is complete.",
      "topics": [
        "emulator_runs_complete"
      ]
    },
    {
      "page": "fill_missing_years",
      "title": "Find fit coefficients for years where no fit could be calculated",
      "topics": [
        "fill_missing_years"
      ]
    },
    {
      "page": "minimize_least_squares",
      "title": "Minimizes the sum of the error squares",
      "topics": [
        "minimize_least_squares"
      ]
    },
    {
      "page": "mute_duplicated",
      "title": "Set duplicated samples to NA",
      "topics": [
        "mute_duplicated"
      ]
    },
    {
      "page": "mute_infes",
      "title": "Set data of infeasible years and their successors to NA",
      "topics": [
        "mute_infes"
      ]
    },
    {
      "page": "mute_insufficient",
      "title": "In years and regions with only an unsufficient number of data points set all data points to NA",
      "topics": [
        "mute_insufficient"
      ]
    },
    {
      "page": "mute_outliers",
      "title": "Set outlier samples to NA",
      "topics": [
        "mute_outliers"
      ]
    },
    {
      "page": "plot_compare_supplycurves",
      "title": "Calculate and plot multiple supplycurves to one plot",
      "topics": [
        "plot_compare_supplycurves"
      ]
    },
    {
      "page": "plot_curve",
      "title": "Plot fitted curve to png files and additionally compile them in a pdf file.",
      "topics": [
        "plot_curve"
      ]
    },
    {
      "page": "read_and_combine",
      "title": "Read multiple report mif files from REMIND or MAgPIE and combine into single magpie object",
      "topics": [
        "read_and_combine"
      ]
    },
    {
      "page": "replace_flat_fits",
      "title": "Replace fits in years where they are flat with fits from other years",
      "topics": [
        "replace_flat_fits"
      ]
    }
  ],
  "_readme": "https://github.com/pik-piam/remulator/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "askpass",
    "backports",
    "base64enc",
    "bit",
    "bit64",
    "bslib",
    "cachem",
    "callr",
    "cellranger",
    "checkmate",
    "cli",
    "clipr",
    "cluster",
    "collections",
    "colorspace",
    "commonmark",
    "countrycode",
    "cpp11",
    "crayon",
    "crosstalk",
    "curl",
    "data.table",
    "desc",
    "digest",
    "dotCall64",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fields",
    "filelock",
    "fontawesome",
    "forcats",
    "foreign",
    "Formula",
    "fs",
    "gamstransfer",
    "GDPuc",
    "gdx2",
    "generics",
    "geometry",
    "ggplot2",
    "glue",
    "gms",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "hms",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "httr",
    "igraph",
    "isoband",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lazyeval",
    "lifecycle",
    "linprog",
    "lpSolve",
    "lubridate",
    "luplot",
    "luscale",
    "lusweave",
    "madrat",
    "magclass",
    "magic",
    "magpie4",
    "magpiesets",
    "magrittr",
    "maps",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "mip",
    "mstools",
    "nnet",
    "nonparaeff",
    "openssl",
    "otel",
    "piamutils",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "pkgload",
    "plotly",
    "plyr",
    "prettyunits",
    "processx",
    "progress",
    "promises",
    "ps",
    "purrr",
    "qualV",
    "quitte",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "R6",
    "rappdirs",
    "raster",
    "RColorBrewer",
    "Rcpp",
    "RcppProgress",
    "readr",
    "readxl",
    "rematch",
    "renv",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rpart",
    "rprojroot",
    "rstudioapi",
    "rworldmap",
    "S7",
    "sass",
    "scales",
    "shiny",
    "sourcetools",
    "sp",
    "spam",
    "stringi",
    "stringr",
    "sys",
    "terra",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytex",
    "trafficlight",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "writexl",
    "xfun",
    "xtable",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "remulator.Rmd",
      "filename": "remulator.html",
      "title": "Fitting curves to data (in magclass format) and plotting the curves to nice graphs and pdf",
      "author": "David Klein",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose and Functionality",
        "Input data",
        "Examples",
        "Alternative A: Calculate emulator for one single case consisting of all scenarios present in the data",
        "Alternative B: Calculate emulator for multiple cases. Distinguish cases by scenarios present in the data.",
        "How to define your own function to be fitted",
        "Advanced",
        "Replace flat fits",
        "Compare supplycurves"
      ],
      "created": "2017-12-07 16:14:08",
      "modified": "2021-08-26 11:28:43",
      "commits": 10
    },
    {
      "source": "magpie_emulator_for_remind.Rmd",
      "filename": "magpie_emulator_for_remind.html",
      "title": "How to produce bioenergy supply price curves for REMIND 3.0 using MAgPIE 5.0 (MAgPIE Emulator)",
      "author": "David Klein, Leon Merfort",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The method",
        "Main steps",
        "1. Perform MAgPIE runs",
        "1.1 Start emulator runs",
        "1.2 Calculate bioenergy supply curves",
        "1.3 Correct emulators if necessary (replace flat fits)",
        "2. Add to REMIND input data",
        "2.1 Via mrremind",
        "2.2 Adding manually",
        "Replace NAs with artificial fits",
        "Use the file in REMIND as base"
      ],
      "created": "2018-07-18 14:45:49",
      "modified": "2022-01-20 10:25:37",
      "commits": 11
    }
  ],
  "_score": 4.217483944213907,
  "_indexed": true,
  "_nocasepkg": "remulator",
  "_universes": [
    "pik-piam",
    "dklein-pik"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.22.0",
      "date": "2026-06-04T17:14:25.000Z",
      "distro": "noble",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "b4cc996b981573c691c4966a9e02ffe78051a7b04e4890ef95958b5c4346583a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.22.0",
      "date": "2026-06-04T17:14:15.000Z",
      "distro": "noble",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "04bbb51b0a8f662e9a70e84b142712652ea59cc75449409ead0285b4ae95ab31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.22.0",
      "date": "2026-06-04T17:13:46.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "5261850294cdc9d488575b669fdcc9da8677728143c4a95997c8a722c1d8d78f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.22.0",
      "date": "2026-06-04T17:13:33.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "7720471b2ec07d9dfe17b078a2f4ee9ab56bdb63b4fe36e294f2445c8194af46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.22.0",
      "date": "2026-06-04T17:14:27.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "e5081d04c978990cbc38052b98f7e9e36ea704829649e68061ce90260e546912",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.22.0",
      "date": "2026-06-04T17:12:56.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "b55dd6ec278ed29658b60db3117f93d1f7197035d87c55d02f0361493914aee6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.22.0",
      "date": "2026-06-04T17:12:53.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "3333c3a18db9ce3ebf951997462469f2cde6dadb55d37a773a830a6345ca43d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.22.0",
      "date": "2026-06-04T17:12:49.000Z",
      "commit": "43f6734ee27d27ebbb223e149112d2da0b9e8888",
      "fileid": "4f46be35d65a124dcb909ec6b1e8ca2927f481ee7099d114eb465927f1b30414",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pik-piam/actions/runs/26967177608"
    }
  ]
}