Skip to content
CRAN requires the check problems on this package to be fixed before 2026-08-31 or it will be archived.

diffpriv

0.4.2

Easy Differential Privacy

1packages depend
3.5Kdownloads / year
97.8%test coverage
0/13checks pass

Overview

About
Maintained by Benjamin RubinsteinFirst published 2017-07-181 releasesCRAN page ↗GitHub ↗

An implementation of major general-purpose mechanisms for privatizing statistics, models, and machine learners, within the framework of differential privacy of Dwork et al. (2006) doi:10.1007/11681878_14. Example mechanisms include the Laplace mechanism for releasing numeric aggregates, and the exponential mechanism for releasing set elements. A sensitivity sampler (Rubinstein & Alda, 2017) arXiv:1706.02562 permits sampling target non-private function sensitivity; combined with the generic mechanisms, it permits turn-key privatization of arbitrary programs.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 2.1 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.31
97.8%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • NOTE2026-06-09
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 645 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
91%
Documented parameters
100%
Return-value docs
55%
References docs
59%

Downloads

3.5K
CRAN downloads in the past year
Rank #12,280 · ~10/day · ~295/mo
Daily download trend is not available in this view yet.
17030 days
81190 days
3.5K1 year
Compare downloads with other packages →
Also on125 r2u23 autocran30 c2d4u

Repository

Repository
69Stars
15Forks
0Open issues
0Open PRs
1Releases
67Commits
2Contributors
rr-packagedifferential-privacydiffprivmachine-learningdata-sciencestatistics
67 commits · Last activity 2022-07-01 · 0% stars, 30d

Stars over time

2025-03-29 · 682026-07-07 · 69

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/brubinstein/diffpriv on 2026-08-16.

Continuous integration (1)
Travis CI
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
Imports (3)
gslmethodsstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.2Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2017-07-18
Total releases
1 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.4.0
Download size
519 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("diffpriv")
Rubinstein, B., & Aldà, F. (2017). diffpriv: Easy Differential Privacy (Version 0.4.2) [Computer software]. https://doi.org/10.32614/CRAN.package.diffpriv

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for diffpriv version 0.4.2 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy