* using log directory 'd:/Rcompile/CRANpkg/local/4.6/smovie.Rcheck' * using R Under development (unstable) (2025-04-16 r88149 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 'smovie/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'smovie' version '1.1.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'smovie' can be installed ... OK * 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [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 ... [9s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [18s] ERROR Running examples in 'smovie-Ex.R' failed The error most likely occurred in: > ### Name: wws > ### Title: Wald, Wilks and Score tests > ### Aliases: wws > > ### ** Examples > > # N(theta, 1) example, test statistics equivalent > wws(theta0 = 0.8) > > # binomial(20, theta) example, test statistics similar > wws(theta0 = 0.5, model = "binom") > > # binomial(20, theta) example, test statistic rather different > # for theta0 distant from theta_mle > wws(theta0 = 0.9, model = "binom", data = c(19, 1), theta_range = c(0.1, 0.99)) > > # binomial(2000, theta) example, test statistics very similar > wws(theta0 = 0.5, model = "binom", data = c(1000, 1000)) > > set.seed(47) > x <- rnorm(10) > wws(theta0 = 0.2, model = "norm", theta_range = c(-1, 1)) > > # Log-likelihood for a binomial experiment (up to an additive constant) > bin_loglik <- function(p, n_success, n_failure) { + return(n_success * log(p) + n_failure * log(1 - p)) + } > > wws(loglik = bin_loglik, theta0 = 0.5, theta_range = c(0.1, 0.7), + theta_mle = 7 / 20, n_success = 7, n_failure = 13) Error in structure(.External(.C_dotTcl, ...), class = "tclObj") : [tcl] can't get device image. Calls: wws ... -> w.tkrplot -> handshake -> fun -> .Tcl -> structure Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] OK Running 'testthat.R' [3s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [4s] OK * checking PDF version of manual ... [29s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR