Skip to content

swelex

0.1.0Package record

Access the Swedish Code of Statutes via Riksdagen's Open Data

0packages depend
531downloads / year
85.0%test coverage
13/13flavors OK

Overview

About

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 detection
  • swe_search(): relevance-ranked free-text search over SFS, with date range, department, and session-year filters
  • swe_get_text(), swe_get_metadata(): thin wrappers around swe_get_doc() for text-only or metadata-only access
  • swe_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

none known

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%

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
Compare downloads with other packages →
Also on14 r2u

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing swelex adds 17 packages (11 with compiled code, 6.3 MB of source tarballs). Heaviest: openssl 1.1 MB, vctrs 1.0 MB, rlang 766 KB.

Depends (1)
R >= 4.1.0
Imports (5)
clihttr2statstibbleutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • 0.1.0Latest
    first seen 2026-08-07 · current release
  • R
    R 4.6.0 released · 2026-04-24

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")
Vepsäläinen, K. (2026). swelex: Access the Swedish Code of Statutes via Riksdagen's Open Data (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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