Import and Export 'SPSS', 'Stata' and 'SAS' Files
Overview
Import foreign statistical formats into R via the embedded 'ReadStat' C library, https://github.com/WizardMac/ReadStat.
- Updated ReadStat to fix stricter gcc diagnostics.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Earlier advisories (1)Hide earlier advisories (1)
- RSEC-2023-5Infinite loop, memory leak, and heap-based buffer over-read vulnerabilities0.1.0 to 1.1.0, fixed in 1.1.1, 2023-10-05, CVE-2018-11364 High 7.5, CVE-2018-11365 High 7.5, CVE-2018-5698 High 7.8
Documentation
- Help pages
- 18 (3 internal)includes a package overview page
- Examples that run
- 100%13 run in a plain check
- Exported functions with examples
- 76%
- Documented parameters
- 97%
- Return-value docs
- 29%
- Help pages citing references
- 0%
- Conversion semantics HTML
- Dates and times HTML
Downloads
Repository
- PRs merged (all time)
- 70%
- Median days to close, 50 most recently updated closed issues
- 888
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
17 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/tidyverse/haven on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-11 · The repository has a site deploy workflow
pkgdown site last built 2025-05-30
Show all practicesHide 2 practices
Dependencies
Installing haven adds 25 packages (13 with compiled code, 7.0 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, cli 629 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 89 more dependents and 114 packages that suggest it on CRAN ↗
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.5.5Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.5.42023-11-30 · diff ↗
- 2.5.32023-06-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.5.22023-02-28 · diff ↗
- 2.5.12022-08-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.5.02022-04-15 · diff ↗
- 2.4.32021-08-04 · diff ↗
- 2.4.22021-08-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.4.12021-04-23 · diff ↗
- 2.4.02021-04-15 · diff ↗
Show 21 earlier eventsHide 21 earlier events
- 2.3.12020-06-01 · diff ↗
- 2.3.0
- RR 4.0.0 released · 2020-04-24
- 2.2.02019-11-08 · diff ↗
- 2.1.12019-07-04 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.1.02019-02-19 · diff ↗
- 2.0.0
- 1.1.22018-06-27 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.1.12018-01-18 · diff ↗
- 1.1.0◆
- RR 3.4.0 released · 2017-04-21
- 1.0.0◆2016-09-23 · diff ↗ ·
removed 1 export
hmsadded 11 exports
format_tagged_na, is.labelled, is_tagged_na, labelled_spss, na_tag, print_labels, print_tagged_na, tagged_na, write_sas, zap_formats, zap_missing - 0.2.1◆2016-07-19 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.2.0◆
- 0.1.1◆2015-03-03 · diff ↗
- 0.1.0◆2015-03-01
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-03-01
- Total releases
- 24 / 11 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 309 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("haven")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.