* using log directory 'd:/Rcompile/CRANpkg/local/4.4/ggredist.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'ggredist/DESCRIPTION' ... OK * this is package 'ggredist' version '0.0.3' * 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 'ggredist' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [7s] 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 examples ... [22s] ERROR Running examples in 'ggredist-Ex.R' failed The error most likely occurred in: > ### 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) ``(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) ``(...) 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) ``() 26. └─vctrs:::stop_subscript_oob(...) 27. └─vctrs:::stop_subscript(...) 28. └─rlang::abort(...) Execution halted * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR