- using R Under development (unstable) (2025-09-03 r88788)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-2) 15.2.0
GNU Fortran (Debian 15.2.0-2) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘movMF/DESCRIPTION’ ... OK
- this is package ‘movMF’ version ‘0.2-9’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [0s/1s] OK
- 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 ‘movMF’ can be installed ... OK
See the install log for details.
- used C compiler: ‘gcc-15 (Debian 15.2.0-2) 15.2.0’
- 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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 ... [7s/10s] OK
- checking Rd files ... [0s/1s] 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 ... [0s/0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘movMF-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: FLXMCvMF
> ### Title: Flexmix Driver for Mixtures of von Mises-Fisher Distributions
> ### Aliases: FLXMCvMF
> ### Keywords: cluster
>
> ### ** Examples
>
> if (requireNamespace("flexmix", quietly = TRUE)) {
+ ## Generate and fit a "small-mix" data set a la Banerjee et al.
+ mu <- rbind(c(-0.251, -0.968),
+ c(0.399, 0.917))
+ kappa <- c(4, 4)
+ theta <- kappa * mu
+ theta
+ alpha <- c(0.48, 0.52)
+ ## Generate a sample of size n = 50 from the von Mises-Fisher mixture
+ ## with the above parameters.
+ set.seed(123)
+ x <- rmovMF(50, theta, alpha)
+ ## Fit a von Mises-Fisher mixture with the "right" number of components,
+ ## using 10 EM runs.
+ set.seed(123)
+ y2 <- flexmix::stepFlexmix(x ~ 1, k = 2, model = FLXMCvMF(), verbose = FALSE)
+ ## Inspect the fitted parameters:
+ y2
+ ## Compare the fitted classes to the true ones:
+ table(True = attr(x, "z"), Fitted = flexmix::clusters(y2))
+ ## To use a common kappa:
+ y2cv <- flexmix::stepFlexmix(x ~ 1, k = 2,
+ model = FLXMCvMF(kappa = list(common = TRUE)), verbose = FALSE)
+ ## To use a common kappa fixed to the true value of 4:
+ y2cf <- flexmix::stepFlexmix(x ~ 1, k = 2,
+ model = FLXMCvMF(kappa = 4), verbose = FALSE)
+ ## Comparing solutions via BIC:
+ sapply(list(y2, y2cf, y2cv), BIC)
+ ## Use a different kappa solver:
+ set.seed(123)
+ y2a <- flexmix::stepFlexmix(x ~ 1, k = 2,
+ model = FLXMCvMF(kappa = "uniroot"), verbose = FALSE)
+ y2a
+ ## Using a sparse matrix:
+ x <- slam::as.simple_triplet_matrix(x)
+ y2 <- flexmix::stepFlexmix(x ~ 1, k = 2,
+ model = FLXMCvMF(), verbose = FALSE)
+ }
Error in UseMethod("logLik") :
no applicable method for 'logLik' applied to an object of class "c('flexmix', 'FLXdist')"
Calls: sapply -> lapply -> FUN -> BIC.default -> ll
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s/15s] OK
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR