Skip to content

text2emotion

0.1.0

Emotion Analysis and Emoji Mapping for Text

0packages depend
1.6Kdownloads / year
test coverage
9/13checks pass

Overview

About
Maintained by Fangyi WangFirst published 2025-05-121 releasesCRAN page ↗

Allows users to analyze text and classify emotions such as happiness, sadness, anger, fear, and neutrality. It combines text preprocessing, TF-IDF (Term Frequency-Inverse Document Frequency) feature extraction, and Random Forest classification to predict emotions and map them to corresponding emojis for enhanced sentiment visualization.

Install

Health

CRAN checks
4NOTE9OK
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
Slowest check: 3.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.42
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • NOTE2026-06-09
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-05-02
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    9 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
75%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

1.6K
CRAN downloads in the past year
Rank #22,704 · ~4/day · ~134/mo
Daily download trend is not available in this view yet.
12930 days
45690 days
1.6K1 year
Compare downloads with other packages →
Also on97 r2u

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.4.0
Imports (9)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

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

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-05-12
Total releases
1 / 1 yrs
License
GPL-2 OSI
Minimum R
≥ 4.4.0
Download size
30 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("text2emotion")
Wang, F., Qu, Z., & Zhao, Y. (2025). text2emotion: Emotion Analysis and Emoji Mapping for Text (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.text2emotion

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

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