* using log directory 'd:/Rcompile/CRANpkg/local/4.6/movMF.Rcheck' * using R Under development (unstable) (2025-09-03 r88788 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'movMF/DESCRIPTION' ... OK * this is package 'movMF' version '0.2-9' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'movMF' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 14.2.0' * checking installed package size ... OK * checking package directory ... 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] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [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 ... [5s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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] 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 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] ERROR Running examples in 'movMF-Ex.R' failed The error most likely occurred in: > ### 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 ... [36s] OK * checking PDF version of manual ... [27s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR