Social Representation Analysis via Semantic Network Mapping
Overview
Implements the ThemeScope framework for detecting and visualising social representations in large-scale digital text corpora. From raw documents it builds, via 'udpipe' annotation, sentence-level word co-occurrence networks and derives two community-level indicators grounded in Social Representation Theory: the Prototypical Salience Index (PSI) for anchoring and the Concreteness Score (CS) for objectification. Communities are located in a two-dimensional, theoretically grounded representational map. The whole pipeline is usable from the R console; an optional 'shiny' graphical interface calls the same exported functions. The method is described in Misuraca, Spano and D'Aniello (2026) doi:10.1177/01655515261454276.
Changes made in response to the CRAN review of 0.1.0.
themescope_cache_dir()no longer creates anything: it reports where models would be cached, and gained acreateargument (defaultFALSE). The cache directory is created only when a model is actually downloaded.ts_download_model()andts_model_path()takemodel_dir = NULLinstead of defaulting to a path under the user's home filespace. Pass a directory of your own, for instancetempdir(), to keep a download inside the session.- New
ts_clear_cache()deletes the downloaded models and the cache directory, so everything the package stores on disk can be removed again. - The first download reports where it is caching.
- Examples no longer use
\dontrun{}. Those that need an internet connection use\donttest{}and fail gracefully, the Shiny launcher is guarded byif (interactive()), and every example that writes does so intempdir().
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK6 OK2026-08-21
Documentation
- Help pages
- 35 (2 internal)includes a package overview page
- Examples that run
- 91%30 run in a plain check (1 of them under a condition) · 3 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 97%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- not measured
Issues over time
Commits over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/lucadaniello/themescoper on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing themescopeR adds 43 packages (23 with compiled code, 36 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, igraph 4.8 MB.
Code & Tests
Datasets
People & History
- 0.1.1Latest2026-08-20 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-08-20
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 180 KB / 1 file
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("themescopeR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1177/01655515261454276.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.