Last updated on 2026-05-16 06:52:15 CEST.
| Package | ERROR | OK |
|---|---|---|
| agricolaeplotr | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.6.1
Check: R code for possible problems
Result: NOTE
plot_longest_diagonal: no visible global function definition for ‘%>%’
Undefined global functions or variables:
%>%
Flavor: r-release-linux-x86_64
Version: 0.6.1
Check: examples
Result: ERROR
Running examples in ‘agricolaeplotr-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot_longest_diagonal
> ### Title: Plot the longest diagonal of a field
> ### Aliases: plot_longest_diagonal
>
> ### ** Examples
>
> library(sf)
Linking to GEOS 3.14.1, GDAL 3.12.3, PROJ 9.8.1; sf_use_s2() is TRUE
> my_sf <- st_read(system.file("shape/gfn_schlaege.shp", package="agricolaeplotr"))
Reading layer `gfn_schlaege' from data source
`/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/agricolaeplotr/shape/gfn_schlaege.shp'
using driver `ESRI Shapefile'
Simple feature collection with 24 features and 5 fields
Geometry type: POLYGON
Dimension: XY
Bounding box: xmin: 453876.8 ymin: 5936041 xmax: 458766 ymax: 5937438
CRS: NA
> st_crs(my_sf) <- 25832
> field <- my_sf[my_sf$SCHLAG_NR == 170,]
> plot_longest_diagonal(field)
Error in stats::dist(field_boundary) %>% as.matrix() %>% as_tibble() %>% :
could not find function "%>%"
Calls: plot_longest_diagonal
Execution halted
Flavor: r-release-linux-x86_64