R Implementation of Leiden Clustering Algorithm
Overview
Implements the 'Python leidenalg' module to be called in R. Enables clustering using the leiden algorithm for partition a graph into communities. See the 'Python' repository for more details: https://github.com/vtraag/leidenalg Traag et al (2018) From Louvain to Leiden: guaranteeing well-connected communities. arXiv:1810.08473.
Bug fix to avoid archive when dependencies are updated.
- corrects mismatched chunk delimiters in documentation
Resolves:
From NEWS.md in the release
Install
Health
WARNINGfor code/documentation mismatchesr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
warning: Failed to inspect Python interpreter from search path at `/usr/sbin/pypy` cause: Can't use Python at `/usr/sbin/pypy` cause: Python executable does not support `-I` flag. Please use Python 3.6 or newer. warning: Failed to inspect Python interpreter from search path at `/usr/sbin/pypy` cause: Can't use Python at `/usr/sbin/pypy` cause: Python executable does not support `-I` flag. Please use Python 3.6 or newer. warning: Failed to inspect Python interpreter from search path at `/usr/sbin/pypy` cause: Can't use Python at `/usr/sbin/pypy` cause: Python executable does not support `-I` flag. Please use Python 3.6 or newer.
WARNINGfor missing documentation entriesr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
warning: Failed to inspect Python interpreter from search path at `/usr/sbin/pypy` cause: Can't use Python at `/usr/sbin/pypy` cause: Python executable does not support `-I` flag. Please use Python 3.6 or newer. All user-level objects in a package should have documentation entries. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual.
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: leiden/tests/testthat/test_bipartite.R (.Names: 1) leiden/tests/testthat/test_multiplex.R (.Dim: 2, .Dimnames: 2, .Label: 1) leiden/tests/testthat/test_weighted.R (.Dim: 3, .Dimnames: 3) leiden/inst/doc/run_bipartite.R (.Names: 1) leiden/inst/doc/run_multiplex.R (.Label: 1) '.Names' should be changed to 'names'. '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. '.Label' should be changed to 'levels'.
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘S. Thomas Kelly <tomkellygenetics@gmail.com>’ The Description field contains to Leiden: guaranteeing well-connected communities. <arXiv:1810.08473>. Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTEwhether startup messages can be suppressedr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
warning: Failed to inspect Python interpreter from search path at `/usr/sbin/pypy` cause: Can't use Python at `/usr/sbin/pypy` cause: Python executable does not support `-I` flag. Please use Python 3.6 or newer. It looks like this package (or a package it requires) has a startup message which cannot be suppressed: see ?packageStartupMessage.
- WARNING8 OK, 3 NOTE, 2 WARNINGNow
- WARNING8 OK, 4 NOTE, 1 WARNING2026-09-10
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 1
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 67%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 69
- Median days to close, 50 most recently updated closed PRs
- 21
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/tomkellygenetics/leiden on 2026-10-21.
Show all practicesHide 1 practice
Dependencies
Installing leiden adds 18 packages (12 with compiled code, 13 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, reticulate 1.6 MB.
Code & Tests
People & History
Maintainer since 0.2.3 (2019)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.4.3.1Latest
- RR 4.3.0 released · 2023-04-21
- 0.4.32022-09-10 · diff ↗
- 0.4.22022-05-09 · diff ↗
- 0.3.102022-04-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.3.92021-07-27 · diff ↗
- 0.3.82021-05-24 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.3.72021-01-26 · diff ↗
- 0.3.62020-12-07 · diff ↗
- 0.3.52020-11-09 · diff ↗
- 0.3.42020-10-29 · diff ↗
Package metadata
- First published
- 2019-02-11
- Total releases
- 15 / 7 yrs
- License
- GPL-3 | file LICENSE OSI
- Download size
- 2.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("leiden")The package provides a citation file, so citation() returns the authors' own entry.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.