TextAnalysisR: A Text Mining Workflow Tool

Provides a text mining and natural language processing workflow for documents. Includes preprocessing via 'quanteda', lexical analysis (term frequency-inverse document frequency, log-odds ratios, lexical diversity) via 'tidytext', topic modeling via 'stm' and the 'BERTopic' approach, semantic similarity and document clustering on transformer representations, an interactive 'Shiny' interface with 'ggplot2' visualization, optional 'spaCy' preprocessing, and local 'sentence-transformers' or web-based ('OpenAI', 'Gemini') model providers for retrieval-augmented generation, as described in Shin et al. (2026) <doi:10.1177/07319487251412879>.

Version: 0.1.4
Depends: R (≥ 4.0)
Imports: dplyr, DT, ggplot2, htmltools, htmlwidgets, igraph, magrittr, Matrix, methods, quanteda, quanteda.textstats, RColorBrewer, rlang, scales, shiny, tibble, tidyr, tidytext, widyr, withr
Suggests: aricode, tidylo, broom, patchwork, cluster, clusterCrit, colourpicker, covr, dbscan, digest, httr, jsonlite, knitr, markdown, MASS, moments, numform, officer, openxlsx, pdftools, progress, proxy, pscl, purrr, readxl, reticulate (≥ 1.28), rmarkdown, roxygen2, Rtsne, shinyBS, shinybusy, shinyjs, spelling, stm, stopwords, stringr, syuzhet, testthat (≥ 3.0.0), textdata, umap, plotly
Published: 2026-07-27
DOI: 10.32614/CRAN.package.TextAnalysisR (may not be active yet)
Author: Mikyung Shin ORCID iD [aut, cre]
Maintainer: Mikyung Shin <shin.mikyung at gmail.com>
BugReports: https://github.com/mshin77/TextAnalysisR/issues
License: GPL (≥ 3)
URL: https://mshin77.github.io/TextAnalysisR/, https://github.com/mshin77/TextAnalysisR
NeedsCompilation: no
SystemRequirements: Python (>= 3.8) with spaCy (>= 3.5) for lemmatization and sentence-transformers (>= 2.2) for embeddings (optional)
Language: en-US
Citation: TextAnalysisR citation info
Materials: README, NEWS
CRAN checks: TextAnalysisR results

Documentation:

Reference manual: TextAnalysisR.html , TextAnalysisR.pdf
Vignettes: AI Integration (source, R code)
Security (source, R code)
Installation (source, R code)
Lexical Analysis (source, R code)
Multimodal Analysis (source, R code)
Preprocessing (source, R code)
Python Environment (source, R code)
Getting Started (source, R code)
Semantic Analysis (source, R code)
Topic Modeling (source, R code)
Accessibility (source, R code)

Downloads:

Package source: TextAnalysisR_0.1.4.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=TextAnalysisR to link to this page.