R Observatory
Search
install.packages("textreuse")
CRAN 30-day downloads, method
507−15.5% down on the 30 days before, the worse direction
Test coverage, method
89%of lines run by tests

Tools for measuring similarity among documents and detecting passages which have been reused. Implements shingled n-gram, skip n-gram, and other tokenizers; similarity/dissimilarity functions; pairwise comparisons; minhash and locality sensitive hashing algorithms; and a version of the Smith-Waterman local alignment algorithm suitable for natural language.

Maintainer
Yaoxiang Li
Latest release
25 Jul 2026
First release
31 Oct 2015

Compare with another package

More details
Releases
8
Needs compilation
Yes
Needs R
>= 3.1.1
Config/roxygen2/version
8.0.0
Date
2026-07-24
Task views (1)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("textreuse")
APA
Li, Y., & Mullen, L. (2026). textreuse: Detect Text Reuse and Document Similarity (Version 1.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.textreuse
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 textreuse version 1.0.2 [Data set]. HJJB, LLC. Data release v2026-10-29. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-29, 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
    1.0.2
    Time taken
    102 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.0.2
    Time taken
    82 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.0.2
    Time taken
    75 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.0.2
    Time taken
    81 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    240 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.0.2
    Time taken
    132 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    260 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    180 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    98 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    98 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.0.2
    Time taken
    295 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    155 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.0.2
    Time taken
    158 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (10)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
7 Jun 2026Error12001
25 Apr 2026OK12000
22 Apr 2026Note11300
18 Apr 2026Error10301
10 Apr 2026Note11300
9 Apr 2026Error10301
10 Mar 2026Note11300

Since March 2026

Check results on CRAN

Total downloads in the last 90 days
1,769It is the sum of 3 channels: CRAN, r2u and c2d4u. autoCRAN was counted over another window, so it is not added.

CRAN rank

5,189 of 26,553

CRAN

1,625 downloads in the last 90 days

Rank
5,189 of 26,553

It is in the total. Take it out

r2u

108 downloads in the last 90 days

Rank
3,278 of 30,526

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

It is not added because it has no figure for the last 90 days. Show the last 30 days

c2d4u, no longer updated

36 downloads in the last 90 days

Rank
1,822 of 7,575

It is in the total. Take it out

Over time

Compare downloads

Needs
11
Dependent packages
0
Suggested by
1
Needs (11)
Installing it adds
26 packages, 33.9 MB of source
Of those, need compilation
14
Optional extras (4)
Functions
135
Public exports
49
Lines of R code
2,248
Median complexity
1
Functions (135)
Size and composition

Lines by kind (4,821)

KindLinesShare
R code2,24847%
Tests75016%
Documentation1,26226%
Guides3497%
Compiled code2124%

Lines by language

LanguageLinesShare
R2,97062%
Rd1,26226%
Vignettes3497%
C++2124%
Other280.6%

Languages are counted from file extensions.

Files
106
R functions
126
Compiled functions
9
Object systems
S3: 47 methods
Complexity
Median
1
Mean
1.7
Highest
17
Median lines per function
4
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
126
Calls
77
Unconnected
43
Groups
12
Growth (8 releases)
Total lines by release
4,220 on 31 Oct 20154,821 on 25 Jul 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
89.5%
Expressions run by tests
89.7%
Test cases
81
Exports named in tests
75.5%
Coverage by file (22)
Coverage run
Lines counted
715
Lines the tests ran
634
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
81
Lines of tests
750
Test lines per line of code
0.33
Exports documented
100%
Arguments documented
100%
Return value documented
80%
Help pages with examples
69.2%
Examples run in checks
100%
Guides (4)
Other documentation
README
Yes, 1,036 words
Release notes file
Yes
Help pages
26
Lines of documentation
1,262

ropensci / textreuse on github.com

Stars
200no change on 30 days ago
Forks
34
Open issues
0
Last commit
25 Jul 2026
Activity
Commits
346
Open pull requests
0
Tagged releases
4
Latest tagged release
v1.0.2, 24 Jul 2026
Issues closed in
6 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
79%
Created
14 Mar 2015
Licence file reads as
–
Development practices (8)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct
Docs sourceREADME.Rmd, pkgdown
CoverageCoverage reporting
Reproducibility and dev environmentMakefile
CRAN release processcran-comments.md

Method, repository practices

Across ropensci

R releases
  • On CRAN
  • Release
VersionReleasedREvents
1.0.2 current25 Jul 20264.6.1
1.0.17 May 20264.6.0Maintainer: Yaoxiang Li
0.1.515 May 20204.0.0
0.1.428 Nov 20163.3.2
0.1.328 Mar 20163.2.4
0.1.26 Nov 20153.2.2
0.1.14 Nov 20153.2.2
0.1.031 Oct 20153.2.2
Release notes (1.0.2)
  • Updated locality-sensitive hashing helpers for current dplyr and tidyselect, eliminating deprecated-selection and expected many-to-many join warnings.
  • Replaced inactive Travis CI and AppVeyor configurations with GitHub Actions checks and coverage reporting.
  • Updated external documentation links to their current secure locations.