* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/multiScaleR.Rcheck’ * using R Under development (unstable) (2026-12-01 r91013) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-12-01 15:01:33 UTC * checking for file ‘multiScaleR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘multiScaleR’ version ‘1.0.1’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘multiScaleR’ can be installed ... [54s/53s] OK * used C compiler: ‘gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * used C++ compiler: ‘g++ (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * checking C++ specification ... INFO specified C++17 * 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 ... 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 ... [55s/61s] 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 ... [24s/27s] OK * checking examples with --run-donttest ... [25s/27s] ERROR Running examples in ‘multiScaleR-Ex.R’ failed The error most likely occurred in: > ### Name: fit_gdr_response_field > ### Title: Fit a Fixed-Range Spatial Abundance Field to a Distance-Removal > ### Model > ### Aliases: fit_gdr_response_field > > ### ** Examples > > ## No test: > # The field needs unmarked 1.5.2 and TMB 1.9.25. > if (requireNamespace("TMB", quietly = TRUE) && + utils::packageVersion("unmarked") == "1.5.2" && + utils::packageVersion("TMB") == "1.9.25") { + # Eight survey blocks 1 km apart along a line, six point counts in each + block <- factor(rep(paste0("b", 1:8), each = 6)) + hab <- rep(seq(-1, 1, length.out = 6), 8) + shift <- c(-0.4, -0.3, -0.1, 0, 0.1, 0.2, 0.35, 0.4)[block] + sim <- sim_dat_gdr(density = exp(log(400) + 0.5 * hab + shift), + distance_scale = 40, removal = 0.2, dist_breaks = c(0, 25, 50, 75), + interval_lengths = c(2, 3, 5), interval_units = "minutes", + site_covs = data.frame(hab = hab, block = block), seed = 1) + umf <- sim$observed + + # Template: an independent random intercept for each block (TMB engine) + template <- unmarked::gdistremoval(lambdaformula = ~ hab + (1 | block), + removalformula = ~ 1, distanceformula = ~ 1, data = umf, + keyfun = "halfnorm", mixture = "P", output = "density", + unitsOut = "kmsq", K = 60, engine = "TMB", + starts = c(log(400), 0, log(40), qlogis(0.2), log(0.3))) + + # Every survey carries the projected coordinates (m) of its block center + block_xy <- cbind(x = 500000 + 1000 * (as.integer(block) - 1), + y = 4400000) + rownames(block_xy) <- rownames(unmarked::siteCovs(umf)) + + # A second set of starting values, named by parameter block and position + cold <- c("beta_lambda[1]" = log(300), "beta_lambda[2]" = 0, + "beta_dist[1]" = log(30), "beta_rem[1]" = qlogis(0.4), + "lsigma_lambda[1]" = log(0.5)) + settings <- list(method = "BFGS", se = TRUE, threads = 1L, + control = list(maxit = 2500L, reltol = 1e-10)) + + field_fit <- fit_gdr_response_field(template, coords = block_xy, + crs = 32617, range = 2000, cold_starts = list(cold = cold), + audit_dir = tempfile("gdr-field-"), tmb_settings = settings) + + # Log density, log distance scale (m) and logit removal probability + print(unmarked::coef(field_fit)) + # SD of the block deviations, on the log density scale + print(unmarked::sigma(field_fit)) + # The range adds no parameter, so the AIC penalty matches the template + print(c(template = template@AIC, field = field_fit@AIC)) + } Error: Every declared GDR field start must pass the unchanged fit and curvature gates; inspect audit_dir. Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [36s/39s] [36s/39s] OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [19s/24s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-donttest/multiScaleR.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 8:36.11, 357.73 + 113.15