- using R version 4.4.0 RC (2024-04-16 r86435)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (Debian 13.2.0-13) 13.2.0
GNU Fortran (Debian 13.2.0-13) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘stminsights/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘stminsights’ version ‘0.4.2’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘stminsights’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/4s] OK
- checking whether the package can be unloaded cleanly ... [4s/4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/5s] OK
- checking loading without being on the library search path ... [4s/5s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [20s/23s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [19s/22s] ERROR
Running examples in ‘stminsights-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_network
> ### Title: extract topic correlation network
> ### Aliases: get_network
>
> ### ** Examples
>
>
> library(stm)
stm v1.3.7 successfully loaded. See ?stm for help.
Papers, resources, and other materials at structuraltopicmodel.com
> library(ggraph)
Loading required package: ggplot2
> library(quanteda)
Package version: 4.0.1
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 3 of 32 threads used.
See https://quanteda.io for tutorials and examples.
>
> # prepare data
> data <- corpus(gadarian, text_field = 'open.ended.response')
> docvars(data)$text <- as.character(data)
>
> data <- tokens(data, remove_punct = TRUE) |>
+ tokens_wordstem() |>
+ tokens_remove(stopwords('english')) |> dfm() |>
+ dfm_trim(min_termfreq = 2)
>
> out <- convert(data, to = 'stm')
>
> # fit model
> gadarian_10 <- stm(documents = out$documents,
+ vocab = out$vocab,
+ data = out$meta,
+ prevalence = ~ treatment + s(pid_rep),
+ K = 10,
+ max.em.its = 1, # reduce computation time for example
+ verbose = FALSE)
>
> # extract network
> stm_corrs <- get_network(model = gadarian_10,
+ method = 'simple',
+ labels = paste('Topic', 1:10),
+ cutoff = 0.001,
+ cutiso = TRUE)
Error in get_network(model = gadarian_10, method = "simple", labels = paste("Topic", :
There are no (sufficiently high) correlations between the topics of this STM model.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/3s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR