Skip to content

kgrams

0.2.1Package record

Classical k-gram Language Models

1packages depend
7.3Kdownloads / year
90.1%test coverage
11/13flavors OK

Overview

About

Training and evaluating k-gram language models in R, supporting several probability smoothing techniques, perplexity computations, random text generation and more.

Changes in 0.2.1
  • Added Suggests dependency from tibble (#32).

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespace in Imports field not imported from:
  ‘RcppProgress’
All declared Imports should be used.

CRAN check page ↗

Slowest check: 5.6 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE10 OK, 4 NOTE2026-04-22
  • ERROR9 OK, 4 NOTE, 1 ERROR2026-04-18
  • NOTE7 OK, 7 NOTE2026-04-10
  • ERROR6 OK, 7 NOTE, 1 ERROR2026-04-09
  • NOTE10 OK, 4 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.1
READMEYes · 252 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.1Citation fileNoWebsiteYes · pkgdown
Help pages
17 (1 internal)includes a package overview page
Examples that run
88%14 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
12% with a bibliography file
Vignettes (1)

Downloads

7.3K
CRAN downloads in the past year
Rank #6,742 · ~20/day · ~611/mo
Daily download trend is not available in this view yet.
42030 days
1.3K90 days
7.3K1 year
Compare downloads with other packages →
Also on348 r2u5 autocran

Repository

7Stars
0Forks
2Open issues
0Open PRs
5Releases
338Commits
4Commit identities
natural-language-processingn-gramslanguage-models
License file reads as GPL-3.0 · 338 commits · Last activity 2024-11-13
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
49
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-12-01 · 72026-07-07 · 7
PracticesBeta

11 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/vgherard/kgrams on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-11-14 · The repository has a site deploy workflow

pkgdown site last built 2024-11-14

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 3 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing kgrams adds 5 packages (3 with compiled code, 4.0 MB of source tarballs). Heaviest: Rcpp 1.8 MB, rbibutils 1.1 MB, rlang 766 KB.

Depends (1)
R >= 4.0
Imports (6)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2021)
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.1Latest
    record
    2024-11-13 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.0
    record
    2023-10-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2023-04-18
  • 0.1.5
    record
    2023-04-18 · diff ↗
  • archivedRemoved from CRAN
    2023-02-20
    policy violation On Internet access
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.2
    record
    2021-11-16 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-02-15
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-02-15
Total releases
5 / 5 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.0
Bundled data
67 KB / 2 files
Download size
177 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("kgrams")
Gherardi, V. (2024). kgrams: Classical k-gram Language Models (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.kgrams

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 kgrams version 0.2.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