* using log directory 'd:/Rcompile/CRANpkg/local/4.5/ofpetrial.Rcheck' * using R version 4.5.1 (2025-06-13 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 'ofpetrial/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ofpetrial' version '0.1.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 'ofpetrial' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... NOTE Missing dependency on R >= 4.1.0 because package code uses the pipe |> or function shorthand \(...) syntax added in R 4.1.0. File(s) using such syntax: 'assign_rates.R' 'diagnose.R' 'utility_spatial.R' 'write_trial_files.R' * 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 ... [3s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [11s] 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [30s] ERROR Running examples in 'ofpetrial-Ex.R' failed The error most likely occurred in: > ### Name: check_ortho_with_chars > ### Title: Check the orthogonality with field/topographic characteristics > ### Aliases: check_ortho_with_chars > > ### ** Examples > > data(td_single_input) > yield_sf <- sf::st_read(system.file("extdata", "yield-simple1.shp", package = "ofpetrial")) Reading layer `yield-simple1' from data source `D:\RCompile\CRANpkg\lib\4.5\ofpetrial\extdata\yield-simple1.shp' using driver `ESRI Shapefile' Simple feature collection with 3365 features and 1 field Geometry type: POINT Dimension: XY Bounding box: xmin: -16.70072 ymin: 39.11962 xmax: -16.69613 ymax: 39.1269 Geodetic CRS: WGS 84 > ssurgo_sf <- + sf::st_read(system.file("extdata", "ssurgo-simple1.shp", package = "ofpetrial")) %>% + dplyr::mutate(mukey = factor(mukey)) Reading layer `ssurgo-simple1' from data source `D:\RCompile\CRANpkg\lib\4.5\ofpetrial\extdata\ssurgo-simple1.shp' using driver `ESRI Shapefile' Simple feature collection with 11 features and 9 fields Geometry type: POLYGON Dimension: XY Bounding box: xmin: -16.70096 ymin: 39.11957 xmax: -16.69587 ymax: 39.12696 Geodetic CRS: WGS 84 > topo_rast <- + c( + terra::rast(system.file("extdata", "slope.tif", package = "ofpetrial")), + terra::rast(system.file("extdata", "twi.tif", package = "ofpetrial")) + ) > > checks <- + check_ortho_with_chars( + td = td_single_input, + sp_data_list = list(yield_sf, ssurgo_sf, topo_rast), + vars_list = list("Yld_Vol_Dr", c("mukey", "clay"), names(topo_rast)) + ) Error in `dplyr::mutate()`: ℹ In argument: `checks = purrr::pmap(list(trial_design, spatial_data, variable), summarize_chars)`. Caused by error in `purrr::pmap()`: ℹ In index: 2. Caused by error in `purrr::map()`: ℹ In index: 2. Caused by error in `ggplot2::scale_x_continuous()`: ! `limits` must be a vector, not a character vector. Backtrace: ▆ 1. ├─ofpetrial::check_ortho_with_chars(...) 2. │ └─... %>% ... 3. ├─dplyr::select(., var, input_name, summary_data, summary_fig) 4. ├─tidyr::unnest(., checks) 5. ├─dplyr::mutate(...) 6. ├─dplyr:::mutate.data.frame(...) 7. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 8. │ ├─base::withCallingHandlers(...) 9. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 10. │ └─mask$eval_all_mutate(quo) 11. │ └─dplyr (local) eval() 12. ├─purrr::pmap(list(trial_design, spatial_data, variable), summarize_chars) 13. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─ofpetrial (local) .f(.l[[1L]][[i]], .l[[2L]][[i]], .l[[3L]][[i]], ...) 18. │ ├─... %>% dplyr::bind_rows() 19. │ └─purrr::map(char_vars, function(x) summarize_indiv_char(joined_data, var = x)) 20. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 21. │ ├─purrr:::with_indexed_errors(...) 22. │ │ └─base::withCallingHandlers(...) 23. │ ├─purrr:::call_with_cleanup(...) 24. │ └─ofpetrial (local) .f(.x[[i]], ...) 25. │ └─ofpetrial:::summarize_indiv_char(joined_data, var = x) 26. │ └─... %>% ggExtra::ggMarginal(type = "histogram") 27. ├─dplyr::bind_rows(.) 28. │ └─rlang::list2(...) 29. └─ggExtra::ggMarginal(., type = "histogram") 30. └─plt$build() 31. └─private$addLimits(margThemed) 32. └─ggplot2::scale_x_continuous(limits = limits, oob = scales::squish) 33. └─ggplot2::continuous_scale(...) 34. └─ggplot2:::check_continuous_limits(limits, call = call) 35. └─ggplot2:::check_numeric(limits, arg = arg, call = call, allow_na = TRUE) 36. └─ggplot2:::check_object(x, is.numeric, what, ..., arg = arg, call = call) 37. └─ggplot2:::stop_input_type(...) 38. └─rlang::abort(message, ..., call = call, arg = arg) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [31s] OK * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR, 1 NOTE