* using log directory 'd:/RCompile/CRANincoming/R-devel/aelab.Rcheck' * using R version 4.6.0 alpha (2026-03-31 r89747 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-04-01 09:00:39 UTC * checking for file 'aelab/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'aelab' version '1.1.2' * package encoding: UTF-8 * checking CRAN incoming feasibility ... 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 'aelab' can be installed ... OK * 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 ... [22s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'aelab-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: calculate_regression > ### Title: calculate_regression > ### Aliases: calculate_regression > > ### ** Examples > > data(n2o) > n2o_converted <- convert_time(n2o) > ref <- data.frame( + date_time = as.POSIXct("2023-05-04 09:16:15", tz = "Asia/Taipei"), + site = "S1", + analyzer = "1074" + ) > calculate_regression(n2o_converted, ref, "N2O", + reference_time = "date_time", site = "site", + analyzer_code = "1074") Error in `map()`: ℹ In index: 1. Caused by error in `lm.fit()`: ! 0 (non-NA) cases Backtrace: ▆ 1. ├─aelab::calculate_regression(...) 2. │ └─purrr::map_dfr(...) 3. │ └─purrr::map(.x, .f, ...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─aelab (local) .f(.x[[i]], ...) 9. │ └─stats::lm(as.numeric(selected_data[[ghg]]) ~ seq_along(selected_data[[ghg]])) 10. │ └─stats::lm.fit(...) 11. │ └─base::stop("0 (non-NA) cases") 12. └─base::.handleSimpleError(...) 13. └─purrr (local) h(simpleError(msg, call)) 14. └─cli::cli_abort(...) 15. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [12s] OK * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR