{
  "_id": "6b02b74b7510c4b9d7d8f2f6",
  "Package": "porcelain",
  "Title": "Turn a Package into an HTTP API",
  "Version": "0.1.16",
  "Authors@R": "c(person(\"Rich\", \"FitzJohn\", role = c(\"aut\", \"cre\"),\nemail = \"rich.fitzjohn@gmail.com\"),\nperson(\"Imperial College of Science, Technology and Medicine\",\nrole = \"cph\"))",
  "Description": "Wrapper around the plumber package to turn a package into\nan HTTP API. This adds some conventions that we find useful,\nsuch as some testing infrastructure and automatic validation of\nresponses against a json schema.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "URL": "https://github.com/reside-ic/porcelain",
  "BugReports": "https://github.com/reside-ic/porcelain/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "ropensci/jsonvalidate"
  ],
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make libicu-dev libsodium-dev libssl-dev\nlibnode-dev zlib1g-dev",
  "Repository": "https://vimc.r-universe.dev",
  "Date/Publication": "2025-05-09 09:48:18 UTC",
  "RemoteUrl": "https://github.com/reside-ic/porcelain",
  "RemoteRef": "master",
  "RemoteSha": "674b6c17216ecfdab024ff35e96fd564f437d50f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-22 09:31:48 UTC",
    "User": "root"
  },
  "Author": "Rich FitzJohn [aut, cre],\nImperial College of Science, Technology and Medicine [cph]",
  "Maintainer": "Rich FitzJohn <rich.fitzjohn@gmail.com>",
  "_user": "vimc",
  "_type": "src",
  "_file": "porcelain_0.1.16.tar.gz",
  "_fileid": "https://r2.ropensci.org/ab2115fe8ecdff232a158519d5f5d7a25f304fe20df5e2261ca33baabd6e89b4",
  "_filesize": 200570,
  "_sha256": "ab2115fe8ecdff232a158519d5f5d7a25f304fe20df5e2261ca33baabd6e89b4",
  "_expires": "2027-03-02T09:35:05.000Z",
  "_created": "2026-11-22T09:31:48.000Z",
  "_published": "2026-11-22T09:35:07.368Z",
  "_upstream": "https://github.com/reside-ic/porcelain",
  "_status": "success",
  "_maintainer": {
    "name": "Rich FitzJohn",
    "email": "rich.fitzjohn@gmail.com",
    "login": "richfitz",
    "mastodon": "@richfitz@fosstodon.org",
    "description": "",
    "uuid": 1558093
  },
  "_jobs": [
    {
      "job": 137163851157,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "14748900855"
    },
    {
      "job": 137163851156,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14749130585"
    },
    {
      "job": 137163851237,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "14748303954"
    },
    {
      "job": 137163851164,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14748627381"
    },
    {
      "job": 137162947814,
      "time": 215,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14747849364"
    },
    {
      "job": 137163851159,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14748771600"
    },
    {
      "job": 137163851167,
      "time": 76,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "14748532378"
    },
    {
      "job": 137163851199,
      "time": 91,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "14748259256"
    },
    {
      "job": 137163851172,
      "time": 90,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14748966113"
    }
  ],
  "_buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022",
  "_commit": {
    "id": "674b6c17216ecfdab024ff35e96fd564f437d50f",
    "author": "Rich FitzJohn <r.fitzjohn@imperial.ac.uk>",
    "committer": "Rich FitzJohn <r.fitzjohn@imperial.ac.uk>",
    "message": "Bump version\n",
    "time": 1746784098
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "V8",
      "role": "Imports"
    },
    {
      "package": "ids",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "jsonvalidate",
      "version": ">= 1.2.2",
      "role": "Imports"
    },
    {
      "package": "lgr",
      "role": "Imports"
    },
    {
      "package": "plumber",
      "role": "Imports"
    },
    {
      "package": "callr",
      "role": "Suggests"
    },
    {
      "package": "fs",
      "role": "Suggests"
    },
    {
      "package": "httr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mockery",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "reside-ic",
  "_selfowned": false,
  "_usedby": 2,
  "_updates": [],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "richfitz",
      "count": 254,
      "uuid": 1558093
    },
    {
      "user": "r-ash",
      "count": 83,
      "uuid": 39248272
    },
    {
      "user": "hillalex",
      "count": 7,
      "uuid": 6736820
    }
  ],
  "_userbio": {
    "uuid": 26278316,
    "type": "organization",
    "name": "Vaccine Impact Modelling Consortium",
    "followers": 14
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/porcelain"
  },
  "_devurl": "https://github.com/reside-ic/porcelain",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/porcelain.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Rich FitzJohn",
      "email": "rich.fitzjohn@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Imperial College of Science, Technology and Medicine",
      "role": [
        "cph"
      ]
    }
  ],
  "_exports": [
    "porcelain",
    "porcelain_add_headers",
    "porcelain_background",
    "porcelain_endpoint",
    "porcelain_input_body_binary",
    "porcelain_input_body_json",
    "porcelain_input_query",
    "porcelain_logger",
    "porcelain_package_endpoint",
    "porcelain_returning",
    "porcelain_returning_binary",
    "porcelain_returning_json",
    "porcelain_returning_text",
    "porcelain_roclet",
    "porcelain_state",
    "porcelain_stop"
  ],
  "_help": [
    {
      "page": "porcelain",
      "title": "A 'porcelain' object",
      "topics": [
        "porcelain"
      ]
    },
    {
      "page": "porcelain_add_headers",
      "title": "Add headers to endpoint output data",
      "topics": [
        "porcelain_add_headers"
      ]
    },
    {
      "page": "porcelain_background",
      "title": "While porcelain makes it easy to test endpoints individually, you may still want some integration or end-to-end tests where you bring the entire API up and interact with it from your tests. This class provides a helper for doing this in a way that is reasonably tidy.",
      "topics": [
        "porcelain_background"
      ]
    },
    {
      "page": "porcelain_endpoint",
      "title": "Basic endpoint object",
      "topics": [
        "porcelain_endpoint"
      ]
    },
    {
      "page": "porcelain_input_body",
      "title": "Control for body parameters",
      "topics": [
        "porcelain_input_body_binary",
        "porcelain_input_body_json"
      ]
    },
    {
      "page": "porcelain_input_query",
      "title": "Control for query parameters",
      "topics": [
        "porcelain_input_query"
      ]
    },
    {
      "page": "porcelain_logger",
      "title": "Create logger",
      "topics": [
        "porcelain_logger"
      ]
    },
    {
      "page": "porcelain_package_endpoint",
      "title": "Find roxygen-defined endpoint",
      "topics": [
        "porcelain_package_endpoint"
      ]
    },
    {
      "page": "porcelain_returning",
      "title": "Support for endpoint return types",
      "topics": [
        "porcelain_returning",
        "porcelain_returning_binary",
        "porcelain_returning_json",
        "porcelain_returning_text"
      ]
    },
    {
      "page": "porcelain_roclet",
      "title": "Define API using roxygen tags",
      "topics": [
        "porcelain_roclet"
      ]
    },
    {
      "page": "porcelain_state",
      "title": "Bind state into an endpoint",
      "topics": [
        "porcelain_state"
      ]
    },
    {
      "page": "porcelain_stop",
      "title": "Throw an error from an endpoint",
      "topics": [
        "porcelain_stop"
      ]
    }
  ],
  "_readme": "https://github.com/reside-ic/porcelain/raw/master/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "crayon",
    "curl",
    "fastmap",
    "httpuv",
    "ids",
    "jsonlite",
    "jsonvalidate",
    "later",
    "lgr",
    "lifecycle",
    "magrittr",
    "mime",
    "openssl",
    "otel",
    "plumber",
    "promises",
    "R6",
    "Rcpp",
    "rlang",
    "sodium",
    "stringi",
    "swagger",
    "sys",
    "uuid",
    "V8",
    "webutils"
  ],
  "_vignettes": [
    {
      "source": "cookbook.Rmd",
      "filename": "cookbook.html",
      "title": "cookbook",
      "engine": "knitr::rmarkdown",
      "headings": [
        "GET endpoint, inputs as query parameters, returning JSON",
        "GET endpoint, inputs as path and query parameters, returning JSON",
        "POST endpoint, inputs as JSON, returning JSON",
        "POST endpoint, inputs as binary, returning binary"
      ],
      "created": "2021-09-03 16:14:39",
      "modified": "2021-09-03 16:14:39",
      "commits": 1
    },
    {
      "source": "porcelain.Rmd",
      "filename": "porcelain.html",
      "title": "porcelain",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Introduction - a porcelain approach to adding-as-a-service"
      ],
      "created": "2021-09-03 16:14:39",
      "modified": "2021-09-03 16:14:39",
      "commits": 1
    },
    {
      "source": "roxygen.Rmd",
      "filename": "roxygen.html",
      "title": "roxygen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prerequisites",
        "Declaring a simple endpoint",
        "The basic syntax",
        "Adding inputs",
        "Binding state",
        "Testing",
        "An example"
      ],
      "created": "2021-11-12 17:04:20",
      "modified": "2021-11-12 17:04:20",
      "commits": 1
    }
  ],
  "_score": 4.857332496431269,
  "_indexed": false,
  "_nocasepkg": "porcelain",
  "_universes": [
    "vimc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.16",
      "date": "2026-11-22T09:34:02.000Z",
      "distro": "resolute",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/08a6d07e60289aa0119287251d8318f76e79ca9373b2d0bf14c8327634fe5440",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.16",
      "date": "2026-11-22T09:33:52.000Z",
      "distro": "resolute",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/3bbb3daf96454aa19b6696b03f825e7e6804408fd1ea1d0c853fa2635be89404",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.16",
      "date": "2026-11-22T09:33:45.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/de04537be777ee99e9942d95005f678a1bbb53958b0524c34ba2ef7b1244e67b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.16",
      "date": "2026-11-22T09:34:08.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/c6ebd2d1af747f25afaeeda6dea73cd9a68eab7d6cd1fce08fd3c54944f0d990",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.16",
      "date": "2026-11-22T09:33:57.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/4c7c88d52191b0850a4c88795ab38aee04f886f7a4fd37b6b79e9e73a7c30a76",
      "status": "success",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.16",
      "date": "2026-11-22T09:32:55.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/0ba6033b029e0fedd2999cbebf6cb4e9f62af2926eb1b74c3bae99db199bc9f2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.16",
      "date": "2026-11-22T09:33:02.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/9eeb8121f4e6552340d5c87feaf6ae107738cb1648bbbbfb72c24d77fc509b2f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.16",
      "date": "2026-11-22T09:33:00.000Z",
      "commit": "674b6c17216ecfdab024ff35e96fd564f437d50f",
      "fileid": "https://r2.ropensci.org/e6a7c8837039e9ecd0e4ef0d0a0dcd04d8458dec237f6be6325aa94e8bf61593",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/vimc/actions/runs/45007699022"
    }
  ]
}