* using log directory 'd:/Rcompile/CRANpkg/local/4.2/hexFinder.Rcheck' * using R version 4.2.3 (2023-03-15 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: UTF-8 * checking for file 'hexFinder/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'hexFinder' version '0.8.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 'hexFinder' 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [6s] 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 examples ... NONE * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [7s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(httptest2) > library(hexFinder) > > test_check("hexFinder") No github personal access token provided. Limited search rates for github will apply. Set up github_pat environmental variable if you plan to query multiple repos in a short time [ FAIL 2 | WARN 0 | SKIP 0 | PASS 33 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-gather.R:76:5'): get_best_image ─────────────────────────────── Error in `purrr::map(paths, function(entry) { info <- magick::image_info(image_read(glue("{download_endpoint}/{branch}/{entry$path}"))) dimentions <- sort(c(info$width, info$height)) (dimentions[2]/dimentions[1]) })`: i In index: 1. Caused by error: ! Rterm.exe: FailedToExecuteCommand `"inkscape" "D:/temp/Rtmp6l8iK7/magick-G6ka0n0UkX3SoThetWswslcFa4Yns8p5" --export-png="D:/temp/Rtmp6l8iK7/magick-6sk_YdQzK8ZSMeoOHD2LxOCJT9sXdWEO.png" --export-dpi="96" --export-background="rgb(100%,100%,100%)" --export-background-opacity="1" > "D:/temp/Rtmp6l8iK7/magick-W7kebDCc0-2GemJbY-G2bHoizWyhYDsA" 2>&1' (-1) @ error/delegate.c/ExternalDelegateCommand/514 Backtrace: ▆ 1. ├─testthat::expect_type(...) at test-gather.R:76:5 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─hexFinder:::get_best_image(...) 5. │ ├─base::unlist(...) 6. │ └─purrr::map(...) 7. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─hexFinder (local) .f(.x[[i]], ...) 12. │ ├─magick::image_info(image_read(glue("{download_endpoint}/{branch}/{entry$path}"))) 13. │ │ └─magick:::assert_image(image) 14. │ └─magick::image_read(glue("{download_endpoint}/{branch}/{entry$path}")) 15. │ └─magick:::magick_image_readpath(path, density, depth, strip, defines) 16. ├─base::stop(``) 17. └─purrr (local) ``(``) 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-gather.R:97:5'): keep_good_ratio_images ──────────────────────── Error in `purrr::keep(paths, function(entry) { info <- magick::image_info(image_trim(image_read(glue("{download_endpoint}/{branch}/{entry$path}")))) dimentions <- sort(c(info$width, info$height)) aspect_ratio <- dimentions[2]/dimentions[1] if (aspect_ratio > 1.8) { return(FALSE) } if (aspect_ratio > 1.151 && aspect_ratio < 1.154) { return(TRUE) } if (info$width > 1279 || info$height > 1279) { return(FALSE) } return(TRUE) })`: i In index: 1. Caused by error: ! Rterm.exe: FailedToExecuteCommand `"inkscape" "D:/temp/Rtmp6l8iK7/magick-Cmjd9YvNTDB8b8qrI_oXx__mzSqj151q" --export-png="D:/temp/Rtmp6l8iK7/magick-1a2Tu5ay-fCOVgbjzN-FlP02ShhTv70b.png" --export-dpi="96" --export-background="rgb(100%,100%,100%)" --export-background-opacity="1" > "D:/temp/Rtmp6l8iK7/magick-XMgYIFM1zmfEP0wP7p33Ff67vlt2Aore" 2>&1' (-1) @ error/delegate.c/ExternalDelegateCommand/514 Backtrace: ▆ 1. ├─testthat::expect_type(...) at test-gather.R:97:5 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─hexFinder:::keep_good_ratio_images(...) 5. │ └─purrr::keep(...) 6. │ └─purrr:::where_if(.x, .p, ...) 7. │ └─purrr:::map_(.x, .p, ..., .type = "logical", .purrr_error_call = .purrr_error_call) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─purrr (local) .f(.x[[i]], ...) 12. │ └─hexFinder (local) .fn(...) 13. │ ├─magick::image_info(image_trim(image_read(glue("{download_endpoint}/{branch}/{entry$path}")))) 14. │ │ └─magick:::assert_image(image) 15. │ ├─magick::image_trim(image_read(glue("{download_endpoint}/{branch}/{entry$path}"))) 16. │ │ └─magick:::assert_image(image) 17. │ └─magick::image_read(glue("{download_endpoint}/{branch}/{entry$path}")) 18. │ └─magick:::magick_image_readpath(path, density, depth, strip, defines) 19. ├─base::stop(``) 20. └─purrr (local) ``(``) 21. └─cli::cli_abort(...) 22. └─rlang::abort(...) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 33 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR