Access the Swedish Code of Statutes via Riksdagen's Open Data
0packages depend
531downloads / year
85.0%test coverage
13/13flavors OK
Overview
About
Maintained by Kristian VepsäläinenCRAN page ↗
Provides functions to search and retrieve the consolidated text of Swedish statutes (Svensk författningssamling, SFS) via the Riksdag's open data API. Part of the lexverse ecosystem of packages for accessing legal and regulatory data.
Changes in 0.1.0
Initial CRAN submission.
swe_get_doc(): fetch a single Swedish statute (SFS) by number, with consolidated up-to-date text, metadata, and repealed-statute detectionswe_search(): relevance-ranked free-text search over SFS, with date range, department, and session-year filtersswe_get_text(),swe_get_metadata(): thin wrappers aroundswe_get_doc()for text-only or metadata-only accessswe_is_repealed(): convenience wrapper to check repeal status
From NEWS.md in the release
Install
Health
CRAN checks
13OK
Slowest check: 59 s · r-oldrel-macos-x86_64
Status changes
- OK13 OKNow
- OK6 OK2026-08-08
Advisories
Documentation
In release 0.1.0
READMEYes · 15 wordsVignettesYes · 1 · staticNEWSYes · 67% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
- Help pages
- 5
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Vignettes (1)
Downloads
531
CRAN downloads in the past year
Rank #23,775 · ~1/day · ~44/mo
Daily download trend is not available in this view yet.
21630 days
53190 days
5311 year
Also on14 r2u
Dependencies
Code & Tests
People & History
People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
- 0.1.0Latestfirst seen 2026-08-07 · current release
- RR 4.6.0 released · 2026-04-24
0 of 2 selectedCompare selected
Package metadata
- First seen
- 2026-08-07
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 14 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("swelex")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-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.