R Observatory
Search

danlex

0.1.0CRAN

Access Danish Legislation from Retsinformation

install.packages("danlex")
CRAN 30-day downloads, method
379+49.2% up on the 30 days before, the better direction
Test coverage, method
87%of lines run by tests

Provides access to Danish acts, regulations and treaties published by Retsinformation via its European Legislation Identifier (ELI) service. Part of the lexverse family of packages for legal and regulatory data.

Maintainer
Kristian Vepsäläinen
Latest release
11 Sep 2026
First release
11 Sep 2026

Compare with another package

More details
Releases
1
Needs compilation
No
Needs R
>= 4.1.0
Config/roxygen2/version
8.0.0
Config/testthat/edition
3
Language
en-US
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("danlex")
APA
Vepsäläinen, K. (2026). danlex: Access Danish Legislation from Retsinformation (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.danlex
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 danlex version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.1.0
    Time taken
    41 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.1.0
    Time taken
    32 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.1.0
    Time taken
    27 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.1.0
    Time taken
    32 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    63 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.1.0
    Time taken
    20 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    61 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    67 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    35 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    34 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.1.0
    Time taken
    17 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    53 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    61 s
  • 13 OK

Check results on CRAN

Total downloads in the last 30 days
390It is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

9,235 of 26,530

CRAN

379 downloads in the last 30 days

Rank
9,235 of 26,530
Change
+49.2% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

7 downloads in the last 30 days

Rank
7,875 of 30,526

It is in the total. Take it out

autoCRAN

4 downloads in the last 30 days

Rank
13,992 of 29,212
Change
+33.3% up on the 30 days before, the better direction

It is in the total. Take it out

Over time

Compare downloads

Needs
4
Dependent packages
0
Suggested by
0
Needs (4)
Installing it adds
18 packages, 6.4 MB of source
Of those, need compilation
12
Optional extras (4)
Functions
43
Public exports
9
Lines of R code
1,782
Median complexity
3
Functions (43)
Size and composition

Lines by kind (4,381)

KindLinesShare
R code1,78241%
Tests1,28729%
Documentation68716%
Guides62514%

Lines by language

LanguageLinesShare
R3,06970%
Rd68716%
Vignettes3468%
Other2796%

Languages are counted from file extensions.

Files
35
R functions
43
Complexity
Median
3
Mean
4.02
Highest
29
Median lines per function
16
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
43
Calls
63
Unconnected
2
Groups
1

The tests ran and coverage was measured.

Lines run by tests
86.6%
Expressions run by tests
89.9%
Test cases
89
Exports named in tests
100%
Coverage by file (7)
Coverage run
Lines counted
673
Lines the tests ran
583
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
89
Lines of tests
1,287
Test lines per line of code
0.72
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
100%
Examples run in checks
100%
Guides (1)
Other documentation
README
Yes, 423 words
Release notes file
Yes
Help pages
9
Lines of documentation
687

KristianVepsalainen / danlex on github.com

Stars
0
Forks
0
Open issues
0
Last commit
31 Aug 2026
Activity
Commits
–
Open pull requests
0
Tagged releases
0
Latest tagged release
–
Issues closed in
–
Pull requests closed in
–
Pull requests merged
–
Created
30 Jul 2026
Licence file reads as
–
Development practices (7)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd
Reproducibility and dev environmentdata-raw/
CRAN release processcran-comments.md, CRAN-SUBMISSION
Lint, format, editorRStudio project

Method, repository practices

Across KristianVepsalainen

R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.0 current11 Sep 20264.6.1
Release notes (0.1.0)
  • Initial CRAN submission.
  • Provides access to Danish acts, regulations and treaties from Retsinformation via its ELI service.
  • Document retrieval by ELI identifier, accession number or the collection/year/number triple, with dlx_get_doc() and dlx_get_docs().
  • Full text and provision-level structure via dlx_get_text() and dlx_get_paragraphs().
  • Cross-references as an edge table via dlx_get_references().
  • Recent changes via dlx_get_changes(), and corpus enumeration via dlx_list_documents().