Skip to content

sentimentr

2.9.0Package record

Calculate Text Polarity Sentiment

3packages dependsuggested by 1
38.3Kdownloads / year
19.2%test coverage
8/13flavors OK

Overview

About

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

Install

Health

CRAN checks
5NOTE8OK
Check messages
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:
  sentimentr/R/validate_sentiment.R (.Dim: 2, .Dimnames: 2, .Names: 2)
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.
'.Names' should be changed to 'names'.
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Tyler Rinker <tyler.rinker@gmail.com>’

Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

CRAN check page ↗

Slowest check: 2.2 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.9.0
READMEYes · 4,678 wordsVignettesNoNEWSYes · 33% structuredCitation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
Help pages
50 (1 internal)includes a package overview page
Examples that run
63%12 run in a plain check · 7 never run
Exported functions with examples
90%
Documented parameters
88%
Return-value docs
90%
Help pages citing references
40%

Downloads

38.3K
CRAN downloads in the past year
Rank #3,167 · ~105/day · ~3.2K/mo
Daily download trend is not available in this view yet.
1.6K30 days
3.8K90 days
38.3K1 year
Compare downloads with other packages →
Also on175 r2u1.8K conda_forge

Repository

439Stars
86Forks
12Open issues
3Open PRs
6Releases
390Commits
6Commit identities
rsentiment-analysispolaritysentimentvalence-shifteramplifier
390 commits · Last activity 2021-10-13 · 0% stars, 30d · Default branch at 2.9.1, ahead of CRAN 2.9.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
26
Median days to close, 50 most recently updated closed PRs
24

Stars over time

2025-07-25 · 4312026-09-22 · 439
PracticesBeta

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

Checks run against github.com/trinker/sentimentr on 2026-10-18.

Continuous integration (1)
Travis CI (config file)
Docs source (1)
README.Rmd
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing sentimentr adds 41 packages (19 with compiled code, 43 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

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

Datasets

People & History

People (1)
Author, Maintainer since 0.2.3 (2016)
Releases (10)

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
  • 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
    record
    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
    record
    2019-03-22 · diff ↗ ·
    added 3 exports
    emotion, emotion_by, extract_emotion_terms
  • 2.6.1
    record
    2018-10-20 · diff ↗ ·
    added 5 exports
    available_data, extract_profanity_terms, profanity, profanity_by, sentimentr_data
  • 2.4.2
    record
    2018-09-25 · diff ↗
  • 2.3.2
    record
    2018-04-24 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.2.3
    record
    2018-01-16 · diff ↗ ·
    added 5 exports
    combine_data, replace_emoji, replace_emoji_identifier, replace_internet_slang, replace_word_elongation
  • 2.0.1
    record
    2017-11-27 · diff ↗
Show 5 earlier eventsHide 5 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.0
    record
    2017-03-11 · diff ↗ ·
    added 8 exports
    average_downweighted_zero, average_mean, average_weighted_mixed_sentiment, general_rescale, sentiment_attributes, update_polarity_table, update_valence_shifter_table, validate_sentiment
  • 0.4.0
    record
    2016-12-28 · diff ↗ ·
    added 1 export
    extract_sentiment_terms
  • 0.2.3
    record
    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 · relicensed from GPL-2 in 0.4.0
Minimum R
≥ 3.4.0
Bundled data
2.5 MB / 18 files
Download size
3.7 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("sentimentr")

The package provides a citation file, so citation() returns the authors' own entry.

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-10-22. https://doi.org/10.5281/zenodo.21843040

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