- using R version 4.5.1 (2025-06-13)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-5) 14.3.0
GNU Fortran (Debian 14.3.0-5) 14.3.0
- running under: Debian GNU/Linux forky/sid
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘ofpetrial’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/4s] OK
- checking loading without being on the library search path ... [3s/4s] 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/29s] OK
- checking Rd files ... [0s/1s] 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 ... [1s/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 ... [36s/45s] ERROR
Running examples in ‘ofpetrial-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
`/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/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
`/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/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 <numeric> 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
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
check_ortho_inputs 10.439 0.252 13.542
assign_rates_conditional 5.848 0.110 6.773
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [35s/49s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE