Last updated on 2025-09-15 21:50:05 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.1.2 | 14.02 | 172.41 | 186.43 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.1.2 | 9.39 | 122.10 | 131.49 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.1.2 | 304.31 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.1.2 | 317.50 | ERROR | |||
r-devel-windows-x86_64 | 0.1.2 | 15.00 | 153.00 | 168.00 | NOTE | |
r-patched-linux-x86_64 | 0.1.2 | 12.52 | 155.58 | 168.10 | NOTE | |
r-release-linux-x86_64 | 0.1.2 | 13.29 | 163.71 | 177.00 | ERROR | |
r-release-macos-arm64 | 0.1.2 | 77.00 | NOTE | |||
r-release-macos-x86_64 | 0.1.2 | 148.00 | NOTE | |||
r-release-windows-x86_64 | 0.1.2 | 15.00 | 159.00 | 174.00 | ERROR | |
r-oldrel-macos-arm64 | 0.1.2 | 69.00 | OK | |||
r-oldrel-macos-x86_64 | 0.1.2 | 109.00 | OK | |||
r-oldrel-windows-x86_64 | 0.1.2 | 23.00 | 208.00 | 231.00 | ERROR |
Version: 0.1.2
Check: DESCRIPTION meta-information
Result: 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’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
Version: 0.1.2
Check: examples
Result: 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-devel-clang/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-devel-clang/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.783 0.192 12.363
assign_rates_conditional 6.169 0.097 7.672
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.2
Check: examples
Result: 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-devel-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-devel-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 7.491 0.260 8.619
assign_rates_conditional 4.316 0.149 5.393
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.2
Check: examples
Result: 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
`/data/gannet/ripley/R/packages/tests-clang/ofpetrial.Rcheck/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
`/data/gannet/ripley/R/packages/tests-clang/ofpetrial.Rcheck/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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.2
Check: examples
Result: 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
`/data/gannet/ripley/R/packages/tests-devel/ofpetrial.Rcheck/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
`/data/gannet/ripley/R/packages/tests-devel/ofpetrial.Rcheck/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
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.2
Check: examples
Result: 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
Flavor: r-release-linux-x86_64
Version: 0.1.2
Check: examples
Result: 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 <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
Flavor: r-release-windows-x86_64
Version: 0.1.2
Check: examples
Result: 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.4\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.4\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
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.