Skip to content

text2emotion

Emotion Analysis and Emoji Mapping for Text

v0.1.0 · May 12, 2025 · GPL-2

Description

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.

Downloads

CRAN

204

Last 30 days

22991st

483

Last 90 days

1.6K

Last year

Trend: +74.4% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

23

Last 90 days

92

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

0

Last 7 days

7

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.

Check History

NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
ERROR 10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Packages required but not available: 'textclean', 'caret'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
ERROR 9 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
ERROR r-release-macos-x86_64

package dependencies

Package required but not available: ‘caret’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Matrix’
  All declared Imports should be used.

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

1,704

Files

34

Compiled share

0%

Has compiled src

No

Language breakdown

R 736 (43.2%)Tests 312 (18.3%)Docs 327 (19.2%)Vignettes 329 (19.3%)

API

Exported functions

8

Internal functions

0

Recent export changes

v0.1.0+8 evaluate_rf_model, handle_negation, predict_emotion_with_emoji +5 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.42

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

25%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.4.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

1

First release

2025-05-12

Latest release

2025-05-12

Avg cadence

Cold removal rate

Dep drift

0

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies stringr textclean magrittr text2vec ranger caret Matrix text2emotion

Version History

1 tracked
new 0.1.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN May 12, 2025. Releases before tracking aren’t shown.