Skip to content

lime

0.5.5

Local Interpretable Model-Agnostic Explanations

2packages dependsuggested by 3
163.2Kdownloads / year
27.1%test coverage
13/13flavors OK

Overview

About

When building complex models, it is often difficult to explain why the model should be trusted. While global measures such as accuracy are useful, they cannot be used for explaining why a model made a specific prediction. 'lime' (a port of the 'lime' 'Python' package) is a method for explaining the outcome of black box models by fitting a local model around the point in question an perturbations of this point. The approach is described in more detail in the article by Ribeiro et al. (2016) doi:10.48550/arXiv.1602.04938.

Changes in 0.5.5
  • Made a change to allow RcppEigen to release easily. (#205)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.5
READMEYes · 422 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.5.5Citation fileNoWebsiteYes · pkgdown
Help pages
18 (4 internal)includes a package overview page
Examples that run
80%8 run in a plain check · 2 never run
Exported functions with examples
71%
Documented parameters
93%
Return-value docs
93%
Help pages citing references
6%
Vignettes (1)

Downloads

163.2K
CRAN downloads in the past year
Rank #2,154 · ~447/day · ~13.6K/mo
Daily download trend is not available in this view yet.
3K30 days
8.1K90 days
163.2K1 year
Compare downloads with other packages →
Also on492 r2u7 autocran3.9K conda_forge139 c2d4u

Repository

495Stars
112Forks
42Open issues
4Open PRs
7Releases
234Commits
16Commit identities
rmodel-checkingmodelingmodel-evaluationcaret
234 commits · Last activity 2026-10-16 · +0.4% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
81%
Median days to close, 50 most recently updated closed issues
140
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2025-09-11 · 4892026-10-17 · 495
PracticesBeta

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

Checks run against github.com/tidymodels/lime on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-12-11 · The repository has a site deploy workflow

pkgdown site last built 2025-12-11, before release 0.5.5 (2026-10-16)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (3)
Lint workflowAirVS Code
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

Installing lime adds 26 packages (12 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, glmnet 2.7 MB.

Depends (1)
R >= 4.1
Imports (14)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.5.3 (2022) · added in 0.5.3

Previously maintained by Thomas Lin Pedersen (0.3.0 to 0.5.2).

Releases (10)

Pick two releases to compare their code metrics.

  • 0.5.5Latest
    record
    2026-10-16 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.4
    record
    2025-12-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5.3
    record
    2022-08-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.2
    record
    2021-02-24 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.5.1
    record
    2019-11-12 · diff ↗
  • 0.5.0
    record
    2019-06-24 · diff ↗ ·
    added 1 export
    .load_text_example
  • R
    R 3.6.0 released · 2019-04-26
  • 0.4.1
    record
    2018-11-21 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 4 earlier eventsHide 4 earlier events
  • 0.4.0
    record
    2018-03-08 · diff ↗ ·
    added 6 exports
    .load_image_example, as_classifier, as_regressor, plot_image_explanation, plot_superpixels, slic
  • 0.3.1
    record
    2017-11-24 · diff ↗ ·
    added 1 export
    plot_explanations
  • 0.3.0
    record
    2017-09-15
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-09-15
Total releases
10 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
98 KB / 3 files
Download size
1.3 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("lime")
Hvitfeldt, E., Benesty, M., & Pedersen, T. L. (2026). lime: Local Interpretable Model-Agnostic Explanations (Version 0.5.5) [Computer software]. https://doi.org/10.32614/CRAN.package.lime

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

From data release v2026-10-17, 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