- using R Under development (unstable) (2026-02-19 r89439)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
* current time: 2026-02-19 20:13:48 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘poLCAParallel/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘poLCAParallel’ version ‘1.2.6’
- 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 whether package ‘poLCAParallel’ can be installed ... [343s/147s] OK
See the install log for details.
- used C compiler: ‘gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
- used C++ compiler: ‘g++ (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
- checking C++ specification ... INFO
specified C++20
- checking package 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [10s/12s] OK
- checking Rd files ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking examples ... ERROR
Running examples in ‘poLCAParallel-Ex.R’ failed
The error most likely occurred in:
> ### Name: cheating
> ### Title: GPA and chronic cheating (sample data)
> ### Aliases: cheating
> ### Keywords: datasets
>
> ### ** Examples
>
> ##
> ## Replication of latent class models in Dayton (1998)
> ##
> ## Example 1. Two-class LCA. (Table 3.3, p. 32)
> ##
> data(cheating)
> f <- cbind(LIEEXAM,LIEPAPER,FRAUD,COPYEXAM)~1
> ch2 <- poLCA(f,cheating,nclass=2) # log-likelihood: -440.0271
Conditional item response (column) probabilities,
by outcome variable, for each class (row)
$LIEEXAM
Pr(1) Pr(2)
class 1: 0.4231 0.5769
class 2: 0.9834 0.0166
$LIEPAPER
Pr(1) Pr(2)
class 1: 0.4109 0.5891
class 2: 0.9708 0.0292
$FRAUD
Pr(1) Pr(2)
class 1: 0.7840 0.2160
class 2: 0.9629 0.0371
$COPYEXAM
Pr(1) Pr(2)
class 1: 0.6236 0.3764
class 2: 0.8181 0.1819
Estimated class population shares
0.1606 0.8394
Predicted class memberships (by modal posterior prob.)
0.1693 0.8307
=========================================================
Fit for 2 latent classes:
=========================================================
number of observations: 319
number of estimated parameters: 9
residual degrees of freedom: 6
maximum log-likelihood: -440.0271
AIC(2): 898.0542
BIC(2): 931.9409
G^2(2): 7.764242 (Likelihood ratio/deviance statistic)
X^2(2): 8.323404 (Chi-square goodness of fit)
>
> ##
> ## Example 2. Two-class latent class regression using
> ## GPA as a covariate to predict class membership as
> ## "cheaters" vs. "non-cheaters".
> ## (Table 7.1, p. 85, and Figure 7.1, p. 86)
> ##
> f2 <- cbind(LIEEXAM,LIEPAPER,FRAUD,COPYEXAM)~GPA
> ch2c <- poLCA(f2,cheating,nclass=2) # log-likelihood: -429.6384
*** caught segfault ***
address (nil), cause 'memory not mapped'
Traceback:
1: EmAlgorithmRcpp(features, t(responses), probs.start$vector, ndata, nfeature, noutcomes, nclass, nrep, na.rm, n.thread, maxiter, tol, seed)
2: poLCA(f2, cheating, nclass = 2)
An irrecoverable exception occurred. R is aborting now ...
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [15s/19s] ERROR
Running ‘testthat.R’ [14s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
>
> test_check("poLCAParallel")
Loading required package: poLCAParallel
*** caught segfault ***
address (nil), cause 'memory not mapped'
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs