Skip to content

haven

2.5.5Package record

Import and Export 'SPSS', 'Stata' and 'SAS' Files

137packages dependsuggested by 114
7Mdownloads / year
55.3%test coverage
13/13flavors OK

Overview

About

Import foreign statistical formats into R via the embedded 'ReadStat' C library, https://github.com/WizardMac/ReadStat.

Changes in 2.5.5
  • Updated ReadStat to fix stricter gcc diagnostics.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.1 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories
Earlier advisories (1)Hide earlier advisories (1)
  • RSEC-2023-5Infinite loop, memory leak, and heap-based buffer over-read vulnerabilities
    0.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

In release 2.5.5
READMEYes · 264 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 2.5.5Citation fileNoWebsiteYes · pkgdown
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%

Downloads

7M
CRAN downloads in the past year
Rank #133 · ~19.2K/day · ~582.7K/mo
Daily download trend is not available in this view yet.
473.3K30 days
1.3M90 days
7M1 year
Compare downloads with other packages →
Also on74.9K r2u190 autocran1.2M conda_forge19K c2d4u

Repository

457Stars
120Forks
11Open issues
3Open PRs
24Releases
869Commits
49Commit identities
spssstatarsas
869 commits · Last activity 2026-10-19 · +1.1% stars, 30d · Default branch at 2.5.5.9000, ahead of CRAN 2.5.5 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2026-07-14 · 4522026-10-19 · 457
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (4)
Code of conductContributing guideIssue templatesSupport guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-11 · The repository has a site deploy workflow

pkgdown site last built 2025-05-30

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (3)
Lint workflowAirRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.6
LinkingTo (1)
Enhances (0)
none

People & History

People (4)
Author, Maintainer since 0.1.0 (2015)
Author, Copyright holder
Author of included ReadStat code
Author · added in 2.5.0
Copyright holder, Funder · added in 2.5.4
Listed in earlier versions (1)
RStudio
no longer listed · 0.1.0 to 2.5.3
Releases (24)

Pick two releases to compare their code metrics.

Show 21 earlier eventsHide 21 earlier events
  • 2.3.1
    record
    2020-06-01 · diff ↗
  • 2.3.0
    record
    2020-05-24 · diff ↗ ·
    added 1 export
    vec_arith.haven_labelled
  • R
    R 4.0.0 released · 2020-04-24
  • 2.2.0
    record
    2019-11-08 · diff ↗
  • 2.1.1
    record
    2019-07-04 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.1.0
    record
    2019-02-19 · diff ↗
  • 2.0.0
    record
    2018-11-22 · diff ↗ ·
    added 1 export
    zap_label
  • 1.1.2
    record
    2018-06-27 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1.1
    record
    2018-01-18 · diff ↗
  • 1.1.0◆
    record
    2017-07-09 · diff ↗ ·
    added 3 exports
    read_xpt, write_xpt, zap_widths
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.0◆
    record
    2016-09-23 · diff ↗ ·
    removed 1 export
    hms
    added 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◆
    record
    2016-07-19 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 0.2.0◆
    record
    2015-04-09 · diff ↗ ·
    added 1 export
    read_stata
  • 0.1.1◆
    record
    2015-03-03 · diff ↗
  • 0.1.0◆
    record
    2015-03-01
  • R
    R 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")
Wickham, H., Posit Software, PBC, Miller, E., & Smith, D. (2025). haven: Import and Export 'SPSS', 'Stata' and 'SAS' Files (Version 2.5.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for haven version 2.5.5 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

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.

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