* using log directory 'd:/Rcompile/CRANpkg/local/4.7/remap.Rcheck' * using R Under development (unstable) (2026-06-04 r90104 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-06-05 19:35:51 UTC * checking for file 'remap/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'remap' version '0.3.2' * 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 'remap' 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 ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] 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 ... [1s] 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 ... [2s] ERROR Running examples in 'remap-Ex.R' failed The error most likely occurred in: > ### Name: remap > ### Title: Build separate models for mapping multiple regions. > ### Aliases: remap > > ### ** Examples > > library(remap) > data(utsnow) > data(utws) > > # We will keep these examples simple by only modeling non-zero values of > # snow water equivalent (WESD) > > utsnz <- utsnow[utsnow$WESD > 0, ] > > # Build a remap model with lm that has formula WESD ~ ELEVATION > # The buffer to collect data around each region is 30km > # The minimum number of observations per region is 10 > remap_model <- remap( + data = utsnz, + regions = utws, + region_id = HUC2, + model_function = lm, + formula = log(WESD) ~ ELEVATION, + buffer = 20, + min_n = 10, + progress = TRUE + ) Finding regional distances... | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% Building models... | | | 0% | |================== | 25% | |=================================== | 50% | |==================================================== | 75% | |======================================================================| 100% > > # Resubstitution predictions > remap_preds <- exp(predict(remap_model, utsnz, smooth = 10)) Error in Ops.units(x, as.numeric(smooth)) : both operands of the expression should be "units" objects Calls: predict ... [<-.units -> NextMethod -> t -> apply -> FUN -> Ops.units Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [10s] ERROR Error(s) in re-building vignettes: --- re-building 'Introduction_to_remap.Rmd' using rmarkdown Quitting from Introduction_to_remap.Rmd:124-141 [lm_huc2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `Ops.units()`: ! both operands of the expression should be "units" objects --- Backtrace: ▆ 1. ├─base::mean((utsnz$WESD - exp(predict(lm_huc2, utsnz, smooth = 10)))^2) 2. ├─stats::predict(lm_huc2, utsnz, smooth = 10) 3. └─remap:::predict.remap(lm_huc2, utsnz, smooth = 10) 4. ├─base::`[<-`(...) 5. ├─units:::`[<-.units`(...) 6. ├─base::NextMethod() 7. ├─base::t(...) 8. └─base::apply(...) 9. └─remap (local) FUN(newX[, i], ...) 10. └─units:::Ops.units(x, as.numeric(smooth)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Introduction_to_remap.Rmd' failed with diagnostics: both operands of the expression should be "units" objects --- failed re-building 'Introduction_to_remap.Rmd' SUMMARY: processing the following file failed: 'Introduction_to_remap.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs