{
  "_id": "6aea312a818c9e3ef6dc0102",
  "Package": "diffpriv",
  "Type": "Package",
  "Title": "Easy Differential Privacy",
  "Version": "0.4.2",
  "Date": "2017-07-16",
  "Authors@R": "c(\nperson(\"Benjamin\", \"Rubinstein\", email = \"brubinstein@unimelb.edu.au\", role = c(\"aut\", \"cre\")),\nperson(\"Francesco\", \"Aldà\", email = \"francesco.alda@gmail.com\", role = \"aut\"))",
  "Description": "An implementation of major general-purpose mechanisms for\nprivatizing statistics, models, and machine learners, within\nthe framework of differential privacy of Dwork et al. (2006)\n<doi:10.1007/11681878_14>. Example mechanisms include the\nLaplace mechanism for releasing numeric aggregates, and the\nexponential mechanism for releasing set elements. A sensitivity\nsampler (Rubinstein & Alda, 2017) <arXiv:1706.02562> permits\nsampling target non-private function sensitivity; combined with\nthe generic mechanisms, it permits turn-key privatization of\narbitrary programs.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/brubinstein/diffpriv,\nhttp://brubinstein.github.io/diffpriv",
  "BugReports": "https://github.com/brubinstein/diffpriv/issues",
  "RoxygenNote": "6.0.1",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Collate": "'utils.R' 'bernstein_polynomials.R' 'privacy_params.R'\n'mechanisms.R' 'bernstein_mechanism.R' 'diffpriv.R'\n'exponential_mechanism.R' 'numeric_mechanism.R'\n'gaussian_mechanism.R' 'laplace_mechanism.R'\n'sensitivity_sampler.R'",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-03 19:05:24 UTC",
    "User": "root"
  },
  "Author": "Benjamin Rubinstein [aut, cre], Francesco Aldà [aut]",
  "Maintainer": "Benjamin Rubinstein <brubinstein@unimelb.edu.au>",
  "Config/pak/sysreqs": "libgsl0-dev",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-11-03 06:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/diffpriv",
  "RemoteSha": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
  "RemoteSubdir": "diffpriv",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "diffpriv_0.4.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/83d47ff39916f5d7fe365cf32299264ba327b9ee89c8c1d183f432a041a7c02e",
  "_filesize": 741584,
  "_sha256": "83d47ff39916f5d7fe365cf32299264ba327b9ee89c8c1d183f432a041a7c02e",
  "_expires": "2027-02-11T19:08:23.000Z",
  "_created": "2026-11-03T19:05:24.000Z",
  "_published": "2026-11-03T19:08:26.221Z",
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_status": "success",
  "_maintainer": {
    "name": "Benjamin Rubinstein",
    "email": "brubinstein@unimelb.edu.au"
  },
  "_jobs": [
    {
      "job": 126140566871,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "13261434488"
    },
    {
      "job": 126140566647,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13263072423"
    },
    {
      "job": 126140566929,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "13261449427"
    },
    {
      "job": 126140566614,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13261009495"
    },
    {
      "job": 126138056003,
      "time": 270,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13262303956"
    },
    {
      "job": 126140566682,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13261149439"
    },
    {
      "job": 126140567051,
      "time": 71,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "13262913304"
    },
    {
      "job": 126140566975,
      "time": 72,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "13262932509"
    },
    {
      "job": 126140566952,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13261304356"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117",
  "_commit": {
    "id": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add diffpriv to CRANhaven, because archived on 2026-11-03 06:02:00 +0000\n",
    "time": 1793685720
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "gsl",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "randomNames",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 292,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/diffpriv"
  },
  "_devurl": "https://github.com/brubinstein/diffpriv",
  "_searchresults": 67,
  "_abi": {
    "exports": [
      {
        "key": "diffpriv::DPMech",
        "hash": "3ebccdd5a236a66c"
      },
      {
        "key": "diffpriv::DPMechBernstein",
        "hash": "fc518e2c711357ad"
      },
      {
        "key": "diffpriv::DPMechExponential",
        "hash": "2b37f2d6bdddc982"
      },
      {
        "key": "diffpriv::DPMechGaussian",
        "hash": "5dd6dc0ddbfb7ff1"
      },
      {
        "key": "diffpriv::DPMechLaplace",
        "hash": "d0568eacfcfc3ed8"
      },
      {
        "key": "diffpriv::DPMechNumeric",
        "hash": "9f723a2ffeaf0c76"
      },
      {
        "key": "diffpriv::DPParamsDel",
        "hash": "ba70b2a2646dfd28"
      },
      {
        "key": "diffpriv::DPParamsEps",
        "hash": "0eadbc6b07daaa34"
      },
      {
        "key": "diffpriv::DPParamsGam",
        "hash": "b6e75318b6e37fd8"
      },
      {
        "key": "diffpriv::generic:.numericNorm",
        "hash": "82472cf385500abf"
      },
      {
        "key": "diffpriv::generic:.responseCore",
        "hash": "6272a2105550704e"
      },
      {
        "key": "diffpriv::generic:getDelta",
        "hash": "61efd8524faa26a2"
      },
      {
        "key": "diffpriv::generic:getEpsilon",
        "hash": "c53d0a2d78caab73"
      },
      {
        "key": "diffpriv::generic:getGamma",
        "hash": "fb2d0e5a4ef09382"
      },
      {
        "key": "diffpriv::generic:releaseResponse",
        "hash": "33e09a8258bc5a5d"
      },
      {
        "key": "diffpriv::generic:sensitivityNorm",
        "hash": "0729d3e442034dae"
      },
      {
        "key": "diffpriv::generic:sensitivitySampler",
        "hash": "8b3db30a597b88ea"
      },
      {
        "key": "diffpriv::generic:sensitivitySamplerManual",
        "hash": "f312751a1d32e9a7"
      },
      {
        "key": "diffpriv::generic:setDelta<-",
        "hash": "c59af3c83a89abda"
      },
      {
        "key": "diffpriv::generic:setEpsilon<-",
        "hash": "4f6e162f186431b5"
      },
      {
        "key": "diffpriv::generic:setGamma<-",
        "hash": "19d828d600526f6d"
      },
      {
        "key": "diffpriv::generic:toGamma",
        "hash": "95f16188ce479242"
      }
    ],
    "imports": []
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/diffpriv.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/brubinstein/diffpriv",
  "_realowner": "brubinstein",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.4.2",
      "date": "2017-07-18"
    }
  ],
  "_exports": [
    "bernstein",
    "DPMechBernstein",
    "DPMechExponential",
    "DPMechGaussian",
    "DPMechLaplace",
    "DPMechNumeric",
    "DPParamsDel",
    "DPParamsEps",
    "DPParamsGam",
    "releaseResponse",
    "sensitivityNorm",
    "sensitivitySampler",
    "sensitivitySamplerManual"
  ],
  "_help": [
    {
      "page": "bernstein",
      "title": "Fit a Bernstein polynomial approximation.",
      "topics": [
        "bernstein"
      ]
    },
    {
      "page": "diffpriv",
      "title": "'diffpriv': practical differential privacy in R.",
      "topics": [
        "diffpriv-package",
        "diffpriv"
      ]
    },
    {
      "page": "DPMech-class",
      "title": "An S4 class for differentially-private mechanisms.",
      "topics": [
        "DPMech-class"
      ]
    },
    {
      "page": "DPMechBernstein-class",
      "title": "An S4 class for the Bernstein mechanism of differential privacy.",
      "topics": [
        "DPMechBernstein",
        "DPMechBernstein-class",
        "releaseResponse,DPMechBernstein,DPParamsEps-method",
        "sensitivityNorm,DPMechBernstein-method",
        "show,DPMechBernstein-method"
      ]
    },
    {
      "page": "DPMechExponential-class",
      "title": "An S4 class for the exponential mechanism of differential privacy.",
      "topics": [
        "DPMechExponential",
        "DPMechExponential-class",
        "releaseResponse,DPMechExponential,DPParamsEps-method",
        "sensitivityNorm,DPMechExponential-method",
        "show,DPMechExponential-method"
      ]
    },
    {
      "page": "DPMechGaussian-class",
      "title": "An S4 class for the Gaussian mechanism of differential privacy.",
      "topics": [
        "DPMechGaussian",
        "DPMechGaussian-class",
        "show,DPMechGaussian-method"
      ]
    },
    {
      "page": "DPMechLaplace-class",
      "title": "An S4 class for the Laplace mechanism of differential privacy.",
      "topics": [
        "DPMechLaplace",
        "DPMechLaplace-class",
        "show,DPMechLaplace-method"
      ]
    },
    {
      "page": "DPMechNumeric-class",
      "title": "A virtual S4 class for differentially-private numeric mechanisms.",
      "topics": [
        "DPMechNumeric",
        "DPMechNumeric-class",
        "releaseResponse,DPMechNumeric,DPParamsEps-method",
        "sensitivityNorm,DPMechNumeric-method",
        "show,DPMechNumeric-method"
      ]
    },
    {
      "page": "DPParamsDel-class",
      "title": "An S4 class for relaxed differential privacy parameters.",
      "topics": [
        "DPParamsDel",
        "DPParamsDel-class",
        "getDelta,DPParamsDel-method",
        "setDelta<-,DPParamsDel-method",
        "show,DPParamsDel-method",
        "toGamma,DPParamsDel,numeric-method"
      ]
    },
    {
      "page": "DPParamsEps-class",
      "title": "An S4 class for basic differential privacy parameters.",
      "topics": [
        "DPParamsEps",
        "DPParamsEps-class",
        "getEpsilon,DPParamsEps-method",
        "setEpsilon<-,DPParamsEps-method",
        "show,DPParamsEps-method",
        "toGamma,DPParamsEps,numeric-method"
      ]
    },
    {
      "page": "DPParamsGam-class",
      "title": "An S4 class for random differential privacy parameters.",
      "topics": [
        "DPParamsGam",
        "DPParamsGam-class",
        "getGamma,DPParamsGam-method",
        "setGamma<-,DPParamsGam-method",
        "show,DPParamsGam-method",
        "toGamma,DPParamsGam,numeric-method"
      ]
    },
    {
      "page": "predict.bernstein",
      "title": "Evaluate Bernstein approximations on data.",
      "topics": [
        "predict.bernstein"
      ]
    },
    {
      "page": "releaseResponse",
      "title": "'DPMech' private release method.",
      "topics": [
        "releaseResponse"
      ]
    },
    {
      "page": "sensitivityNorm",
      "title": "'DPMech' sensitivity-inducing norm.",
      "topics": [
        "sensitivityNorm"
      ]
    },
    {
      "page": "sensitivitySampler",
      "title": "Sensitivity sampler for 'DPMech-class''s.",
      "topics": [
        "sensitivitySampler"
      ]
    },
    {
      "page": "sensitivitySampler-DPMech-function-numeric-method",
      "title": "Sensitivity sampler for 'DPMech-class''s.",
      "topics": [
        "sensitivitySampler,DPMech,function,numeric-method"
      ]
    },
    {
      "page": "sensitivitySamplerManual",
      "title": "Sensitivity sampler for 'DPMech-class'.",
      "topics": [
        "sensitivitySamplerManual"
      ]
    },
    {
      "page": "sensitivitySamplerManual-DPMech-function-numeric-numeric-numeric-method",
      "title": "Sensitivity sampler for 'DPMech-class'.",
      "topics": [
        "sensitivitySamplerManual,DPMech,function,numeric,numeric,numeric-method"
      ]
    },
    {
      "page": "sensitivitySamplerManual-DPMechNumeric-function-numeric-numeric-numeric-method",
      "title": "Sensitivity sampler for 'DPMechNumeric-class'.",
      "topics": [
        "sensitivitySamplerManual,DPMechNumeric,function,numeric,numeric,numeric-method"
      ]
    },
    {
      "page": "setDelta-set",
      "title": "Setter for slot 'delta'.",
      "topics": [
        "setDelta<-"
      ]
    },
    {
      "page": "setEpsilon-set",
      "title": "Setter for slot 'epsilon'.",
      "topics": [
        "setEpsilon<-"
      ]
    },
    {
      "page": "setGamma-set",
      "title": "Setter for slot 'gamma'.",
      "topics": [
        "setGamma<-"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/diffpriv/diffpriv/man/figures/logo.png",
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/diffpriv/diffpriv/README.md",
  "_rundeps": [
    "gsl"
  ],
  "_vignettes": [
    {
      "source": "bernstein.Rnw",
      "filename": "bernstein.pdf",
      "title": "bernstein",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2026-11-03 06:02:00",
      "modified": "2026-11-03 06:02:00",
      "commits": 1
    },
    {
      "source": "diffpriv.Rnw",
      "filename": "diffpriv.pdf",
      "title": "diffpriv",
      "engine": "knitr::knitr",
      "headings": [
        "Introduction",
        "Generic Mechanisms for Differential Privacy",
        "Sensitivity Sampling for Random Differential Privacy"
      ],
      "created": "2026-11-03 06:02:00",
      "modified": "2026-11-03 06:02:00",
      "commits": 1
    }
  ],
  "_score": 4.525044807036846,
  "_indexed": false,
  "_nocasepkg": "diffpriv",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://brubinstein.r-universe.dev/diffpriv",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-11-03T19:07:46.000Z",
      "distro": "resolute",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/995819a4f025d20f9eac4f1580220f952a255f65ebf487cb76d58cf8a5ec2d5c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-11-03T19:07:20.000Z",
      "distro": "resolute",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/7f98937e18336da5ae43afcc832893e688fb0c2ee1501c303ada2ba28416d6a5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.2",
      "date": "2026-11-03T19:07:40.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/b650bf6ab2f37d02ba35ad98728db2ccc76ffab4a101c3844cfc64c47d0d85c9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.4.2",
      "date": "2026-11-03T19:07:30.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/47fe45a8256b77dfad2d6638fc019b570e1642c552c7b41d998d06612d818b9c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.2",
      "date": "2026-11-03T19:07:33.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/e1c5a2c000cfbce07c4192bb827e48a44a0dbb158d4e3c5e2989d694463a86db",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-11-03T19:06:31.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/0470f6797f548799004c4249578f82043a7babb452220dc453ee0b78fb6d06ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-11-03T19:06:37.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/4d6dddada7aed51edd95639be65e6d3ef30d247dc8d434201724d3637778b039",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-11-03T19:06:36.000Z",
      "commit": "c66e0c12ff6e807bd6c154f6834ce23d57d791ac",
      "fileid": "https://r2.ropensci.org/4e2fca06a54be6d0cd1760e9aa970c92f6f99bd8449cc8950fc71cbb3d0220a0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/41699244117"
    }
  ]
}