* using log directory 'd:/Rcompile/CRANpkg/local/4.6/injurytools.Rcheck' * using R Under development (unstable) (2025-12-23 r89222 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'injurytools/DESCRIPTION' ... OK * this is package 'injurytools' version '2.0.0' * 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 'injurytools' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [0s] 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 ... [10s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [19s] OK Running 'testthat.R' [19s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [42s] ERROR Error(s) in re-building vignettes: --- re-building 'estimate-epi-measures.Rmd' using rmarkdown --- finished re-building 'estimate-epi-measures.Rmd' --- re-building 'model-injury-data-i.Rmd' using rmarkdown --- finished re-building 'model-injury-data-i.Rmd' --- re-building 'model-injury-data-ii.Rmd' using rmarkdown --- finished re-building 'model-injury-data-ii.Rmd' --- re-building 'prepare-injury-data.Rmd' using rmarkdown --- finished re-building 'prepare-injury-data.Rmd' --- re-building 'visualize-injury-data.Rmd' using rmarkdown Quitting from visualize-injury-data.Rmd:177-196 [unnamed-chunk-9] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `geom_text_contour()`: ! Problem while converting geom to grob. ℹ Error occurred in the 6th layer. Caused by error in `[.data.table`: ! attempt access index 18/18 in VECTOR_ELT --- Backtrace: ▆ 1. ├─base::withVisible(knit_print(x, ...)) 2. ├─knitr::knit_print(x, ...) 3. └─knitr:::knit_print.default(x, ...) 4. └─knitr::normal_print(x) 5. ├─base::print(x) 6. └─ggplot2 (local) `print.ggplot2::ggplot`(x) 7. ├─ggplot2::ggplot_gtable(data) 8. └─ggplot2 (local) `ggplot_gtable.ggplot2::ggplot_built`(data) 9. └─ggplot2:::by_layer(...) 10. ├─rlang::try_fetch(...) 11. │ ├─base::tryCatch(...) 12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 15. │ └─base::withCallingHandlers(...) 16. └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 17. └─l$draw_geom(d, layout) 18. └─ggplot2 (local) draw_geom(..., self = self) 19. └─self$geom$draw_layer(...) 20. └─ggplot2 (local) draw_layer(..., self = self) 21. └─base::lapply(...) 22. └─ggplot2 (local) FUN(X[[i]], ...) 23. ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params)) 24. └─self$draw_panel(...) 25. └─metR (local) draw_panel(...) 26. ├─data[, `:=`(N, .N), by = .(group, piece)] 27. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'visualize-injury-data.Rmd' failed with diagnostics: Problem while converting geom to grob. ℹ Error occurred in the 6th layer. Caused by error in `[.data.table`: ! attempt access index 18/18 in VECTOR_ELT --- failed re-building 'visualize-injury-data.Rmd' SUMMARY: processing the following file failed: 'visualize-injury-data.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [9s] OK * DONE Status: 1 ERROR