# foreign

> Read and write SPSS, SAS, Stata and other statistics files in R

Source: https://talira.ai/catalog/foreign-y9en1s85
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [data / statistical file formats](https://talira.ai/categories/data/statistical-file-formats), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [R Core Team](https://talira.ai/orgs/r-core-team.md)

foreign is a recommended R package, maintained by the R Core Team, for reading and writing data stored by some versions of Epi Info, Minitab, S, SAS, SPSS, Stata, Systat and Weka, and for reading and writing some dBase files.

## Problems it solves

- open an SPSS or Stata data file in R
- load a SAS dataset into R
- save R data in a format another statistics program can read

## Features

- reads and writes data from some versions of SPSS, SAS, Stata, Minitab, Systat, S, Epi Info and Weka
- reads and writes some dBase files
- a recommended package shipped with R

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.52, adoption 0.62, backing 0.30, extensibility 0.00.

- latest package release 43 days ago (CRAN foreign 0.8-92)
- packages released for 26 years
- 95k package downloads a month (CRAN)
- backed by R Core Team

## Related

- Works with [R](https://talira.ai/catalog/r-jj1se4aq.md)

## Sources

[^1]: https://svn.r-project.org/R-packages/trunk/foreign/DESCRIPTION (checked 29 Nov 2026)
