* using log directory 'd:/Rcompile/CRANpkg/local/4.6/ofpetrial.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 'ofpetrial/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ofpetrial' version '0.1.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 'ofpetrial' 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 ... [11s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] ERROR Running examples in 'ofpetrial-Ex.R' failed The error most likely occurred in: > ### Name: add_blocks > ### Title: Add blocks to trial design > ### Aliases: add_blocks > > ### ** Examples > > #--- load rate information ---# > data(td_single_input) > > #--- add blocks ---# > td_with_blocks <- add_blocks(td_single_input) Error in `dplyr::mutate()`: ℹ In argument: `trial_design = list(...)`. ℹ In row 1. Caused by error in `[.data.table`: ! attempt access index 7/7 in VECTOR_ELT Backtrace: ▆ 1. ├─ofpetrial::add_blocks(td_single_input) 2. │ └─... %>% ... 3. ├─dplyr::mutate(...) 4. ├─dplyr:::mutate.data.frame(...) 5. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 6. │ ├─base::withCallingHandlers(...) 7. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 8. │ └─mask$eval_all_mutate(quo) 9. │ └─dplyr (local) eval() 10. ├─... %>% sf::st_as_sf() 11. ├─sf::st_as_sf(.) 12. ├─.[, `:=`(block_id, .GRP), by = .(block_row, block_col)] 13. ├─data.table:::`[.data.table`(...) 14. └─base::.handleSimpleError(...) 15. └─dplyr (local) h(simpleError(msg, call)) 16. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [5s] ERROR Error(s) in re-building vignettes: --- re-building 'basic-work-flow.Rmd' using rmarkdown Quitting from basic-work-flow.Rmd:61-71 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `dplyr::mutate()`: ℹ In argument: `exp_plots = list(...)`. ℹ In row 1. Caused by error in `[.data.table`: ! attempt access index 2/2 in VECTOR_ELT --- Backtrace: ▆ 1. ├─ofpetrial::make_exp_plots(...) 2. │ └─... %>% ... 3. ├─dplyr::mutate(...) 4. ├─dplyr::mutate(...) 5. ├─dplyr::mutate(...) 6. ├─dplyr::mutate(...) 7. ├─dplyr::mutate(...) 8. ├─dplyr:::mutate.data.frame(...) 9. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 10. │ ├─base::withCallingHandlers(...) 11. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 12. │ └─mask$eval_all_mutate(quo) 13. │ └─dplyr (local) eval() 14. ├─ofpetrial:::make_trial_plots_by_input(...) 15. │ └─... %>% purrr::reduce(rbind) 16. ├─purrr::reduce(., rbind) 17. │ └─purrr:::reduce_impl(.x, .f, ..., .init = .init, .dir = .dir) 18. │ └─purrr:::reduce_init(.x, .init, left = left, error_call = .purrr_error_call) 19. │ └─rlang::is_empty(x) 20. ├─purrr::pluck(., "int_line") 21. │ └─purrr:::pluck_raw(.x, list2(...), .default = .default) 22. ├─dplyr::filter(., nrow(int_line) != 0) 23. ├─dplyr::mutate(...) 24. ├─dplyr::mutate(...) 25. ├─dplyr::left_join(...) 26. ├─dplyr::rowwise(.) 27. ├─sf::st_as_sf(.) 28. ├─.[, `:=`(poly_id, 1:.N), by = group] 29. └─data.table:::`[.data.table`(., , `:=`(poly_id, 1:.N), by = group) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'basic-work-flow.Rmd' failed with diagnostics: ℹ In argument: `exp_plots = list(...)`. ℹ In row 1. Caused by error in `[.data.table`: ! attempt access index 2/2 in VECTOR_ELT --- failed re-building 'basic-work-flow.Rmd' SUMMARY: processing the following file failed: 'basic-work-flow.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs