Skip to content

leiden

0.4.3.1Package record

R Implementation of Leiden Clustering Algorithm

2packages dependsuggested by 1
59.8Kdownloads / year
4.7%test coverage
8/13flavors OK

Overview

About

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.

Changes in 0.4.3.1

Bug fix to avoid archive when dependencies are updated.

  • corrects mismatched chunk delimiters in documentation

Resolves:

https://github.com/yihui/knitr/issues/2057

https://github.com/yihui/knitr/pull/2306

From NEWS.md in the release

Install

Health

CRAN checks
2WARNING3NOTE8OK
Check messages
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.

CRAN check page ↗

Slowest check: 20.3 min · r-release-windows-x86_64
Status changes
  • WARNING8 OK, 3 NOTE, 2 WARNINGNow
  • WARNING8 OK, 4 NOTE, 1 WARNING2026-09-10
  • NOTE9 OK, 5 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.4.3.1
README· In the repository, left out of the releaseVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.4.3.1Citation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
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

59.8K
CRAN downloads in the past year
Rank #1,770 · ~164/day · ~5K/mo
Daily download trend is not available in this view yet.
4.5K30 days
11.8K90 days
59.8K1 year
Compare downloads with other packages →
Also on1.2K r2u5 autocran36K conda_forge683 c2d4u

Repository

44Stars
9Forks
9Open issues
0Open PRs
21Releases
741Commits
2Commit identities
License file reads as GPL-3.0 · 741 commits · Last activity 2024-05-26 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-04-29 · 402026-10-20 · 44
PracticesBeta

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.

Continuous integration (3)
Travis CI (config file)AppVeyorCircleCI
Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Research and citation (1)
CITATION.cff
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

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.

Depends (0)
none
Imports (4)
methodsreticulateMatrixigraph
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
1indirect
Imports 2
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer, Translator · added in 0.3.0
Compiler · added in 0.3.0

Maintainer since 0.2.3 (2019)

Listed in earlier versions (1)
Tom Kelly
no longer listed · 0.2.3
Releases (15)

Pick two releases to compare their code metrics.

Show 8 earlier eventsHide 8 earlier events

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.

APA

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

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.

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