Skip to content

sentimentr

2.9.0

Calculate Text Polarity Sentiment

4packages depend
56.7Kdownloads / year
19.2%test coverage
8/13checks pass

Overview

About
Maintained by Tyler RinkerFirst published 2016-08-1910 releasesCRAN page ↗GitHub ↗

Calculate text polarity sentiment at the sentence level and optionally aggregate by rows or grouping variable(s).

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 2.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.05
19.2%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • NOTE2026-06-09
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 4,678 wordsVignettesNopkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
63%
Documented parameters
88%
Return-value docs
90%
References docs
40%

Downloads

56.7K
CRAN downloads in the past year
Rank #3,171 · ~155/day · ~4.7K/mo
Daily download trend is not available in this view yet.
92730 days
3.7K90 days
56.7K1 year
Compare downloads with other packages →
Also on219 r2u27 autocran1.9K conda_forge

Repository

Repository
438Stars
86Forks
12Open issues
3Open PRs
6Releases
390Commits
6Contributors
rsentiment-analysispolaritysentimentvalence-shifteramplifier
390 commits · Last activity 2023-08-06 · +0.2% stars, 30d

Stars over time

2025-07-25 · 4312026-08-17 · 438

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/trinker/sentimentr on 2026-08-23.

Continuous integration (1)
Travis CI
Docs source (1)
README.Rmd
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
Imports (12)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
4direct
0indirect

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • R
    R 4.2.0 released · 2022-04-22
  • 2.9.0Latest
    2021-10-12 · current release · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 2.7.1
    2019-03-22 · diff ↗
  • 2.6.1
    2018-10-20 · diff ↗
  • 2.4.2
    2018-09-25 · diff ↗
  • 2.3.2
    2018-04-24 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.2.3
    2018-01-16 · diff ↗
  • 2.0.1
    2017-11-27 · diff ↗
Show 5 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.0
    2017-03-11 · diff ↗
  • 0.4.0
    2016-12-28 · diff ↗
  • 0.2.3
    2016-08-19
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-08-19
Total releases
10 / 10 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.4.0
Bundled data
2.5 MB / 18 files
Download size
3.7 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sentimentr")
Rinker, T. (2021). sentimentr: Calculate Text Polarity Sentiment (Version 2.9.0) [Computer software]. https://doi.org/10.32614/CRAN.package.sentimentr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 sentimentr version 2.9.0 [Data set]. HJJB, LLC. Data release v2026-08-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-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