* using log directory 'd:/RCompile/CRANincoming/R-devel/funcharts.Rcheck' * using R version 4.5.0 alpha (2025-03-15 r87984 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 'funcharts/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'funcharts' version '1.7.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [13s] 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'funcharts' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.2.0' * checking installed package size ... OK * 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 ... 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 ... [50s] 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 LazyData ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'funcharts-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: AMFCC_PhaseI > ### Title: Phase I of the Adaptive Multivariate Functional Control Chart > ### (AMFCC). > ### Aliases: AMFCC_PhaseI > > ### ** Examples > > library(funcharts) > N <- 10 > l_grid <- 10 > p <- 2 > grid <- seq(0, 1, l = l_grid) > > > Xall_tra <- funcharts::simulate_mfd( + nobs = N, + p = p, + ngrid = l_grid, + correlation_type_x = c("Bessel", "Gaussian") + ) > X_tra <- + data.frame( + x = c(Xall_tra$X_list[[1]], Xall_tra$X_list[[2]]), + timeindex = rep(rep(1:l_grid, each = (N)), p), + curve = rep(1:(N), l_grid * p), + var = rep(1:p, each = l_grid * N) + ) > > Xall_II <- funcharts::simulate_mfd( + nobs = N, + p = p, + ngrid = l_grid, + shift_type_x = list("A", "B"), + d_x = c(10, 10), + correlation_type_x = c("Bessel", "Gaussian") + ) > > X_II <- + data.frame( + x = c(Xall_II$X_list[[1]], Xall_II$X_list[[2]]), + timeindex = rep(rep(1:l_grid, each = (N)), p), + curve = rep(1:(N), l_grid * p), + var = rep(1:p, each = l_grid * N) + ) > > # AMFCC ------------------------------------------------------------------- > print("AMFCC") [1] "AMFCC" > > mod_phaseI_AMFCC <- AMFCC_PhaseI( + data_tra = X_tra, + data_tun = + NULL, + grid = grid, + ncores = 1 + ) > > mod_phaseII_AMFCC <- AMFCC_PhaseII(data = X_II, + mod_Phase_I = mod_phaseI_AMFCC, + ncores = 1) > > plot(mod_phaseII_AMFCC) Error in plot.AMFCC_PhaseI(x, ...) : 'missing(variables)' did not find an argument Calls: plot -> plot -> plot.AMFCC_PhaseII -> plot.AMFCC_PhaseI Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [45s] ERROR Running 'testthat.R' [45s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(funcharts) Loading required package: robustbase > > test_check("funcharts") [ FAIL 1 | WARN 0 | SKIP 1 | PASS 115 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test_FRTM.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_AMFCC.R:59:3'): plotting AMFCC objects works ─────────────────── Error in `plot.AMFCC_PhaseI(x, ...)`: 'missing(variables)' did not find an argument Backtrace: ▆ 1. ├─base::plot(mod_phaseII_AMFCC) at test_AMFCC.R:59:3 2. └─funcharts:::plot.AMFCC_PhaseII(mod_phaseII_AMFCC) 3. └─funcharts:::plot.AMFCC_PhaseI(x, ...) [ FAIL 1 | WARN 0 | SKIP 1 | PASS 115 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [32s] OK * checking HTML version of manual ... [15s] OK * DONE Status: 2 ERRORs