Running examples in ‘ggredist-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: scale_fill_538
> ### Title: FiveThirtyEight scales for 'ggplot2'
> ### Aliases: scale_fill_538 scale_color_538
> 
> ### ** Examples
> 
> library(ggplot2)
> data(oregon)
> 
> ggplot(oregon, aes(fill = ndv / (ndv + nrv))) +
+     geom_sf(size = 0) +
+     scale_fill_538(name = '') +
+     theme_map()
Error in `vec_slice()`:
! Can't subset elements past the end.
ℹ Location 6 doesn't exist.
ℹ There are only 5 elements.
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. ├─ggplot2 (local) `print.ggplot2::ggplot`(x)
  3. │ ├─ggplot2::ggplot_build(x)
  4. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x)
  5. │   └─plot@guides$build(npscales, plot@layers, plot@labels, data, plot@theme)
  6. │     └─ggplot2 (local) build(..., self = self)
  7. │       └─guides$train(scales, labels)
  8. │         └─ggplot2 (local) train(..., self = self)
  9. │           └─base::Map(...)
 10. │             └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
 11. │               └─ggplot2 (local) `<fn>`(...)
 12. │                 └─guide$train(param, scale, aes, title = labels[[aes]])
 13. │                   └─ggplot2 (local) train(..., self = self)
 14. │                     ├─rlang::inject(self$extract_key(scale, !!!params))
 15. │                     └─self$extract_key(...)
 16. │                       └─ggplot2 (local) extract_key(...)
 17. │                         └─Guide$extract_key(scale, aesthetic, ...)
 18. │                           └─ggplot2 (local) extract_key(...)
 19. │                             └─scale$map(breaks)
 20. │                               └─ggplot2 (local) map(..., self = self)
 21. │                                 ├─pal[x_binned]
 22. │                                 └─vctrs:::`[.vctrs_vctr`(pal, x_binned)
 23. │                                   └─vctrs:::vec_index(x, i, ...)
 24. │                                     └─vctrs::vec_slice(x, i)
 25. └─vctrs (local) `<fn>`()
 26.   └─vctrs:::stop_subscript_oob(...)
 27.     └─vctrs:::stop_subscript(...)
 28.       └─rlang::abort(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
              user system elapsed
ggredist     5.034  0.075   6.063
StatDistrict 3.811  0.133   5.179
StatCityRoad 3.351  0.330   5.528