CRAN Package Check Results for Package imagefluency

Last updated on 2025-02-24 19:50:35 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.5 2.69 37.50 40.19 OK
r-devel-linux-x86_64-debian-gcc 0.2.5 2.01 29.44 31.45 OK
r-devel-linux-x86_64-fedora-clang 0.2.5 52.35 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.5 75.28 ERROR
r-devel-macos-arm64 0.2.5 34.00 OK
r-devel-macos-x86_64 0.2.5 55.00 OK
r-devel-windows-x86_64 0.2.5 5.00 234.00 239.00 OK
r-patched-linux-x86_64 0.2.5 2.91 35.87 38.78 OK
r-release-linux-x86_64 0.2.5 2.37 35.57 37.94 OK
r-release-macos-arm64 0.2.5 30.00 OK
r-release-macos-x86_64 0.2.5 46.00 OK
r-release-windows-x86_64 0.2.5 6.00 245.00 251.00 OK
r-oldrel-macos-arm64 0.2.5 34.00 OK
r-oldrel-macos-x86_64 0.2.5 69.00 OK
r-oldrel-windows-x86_64 0.2.5 5.00 291.00 296.00 OK

Check Details

Version: 0.2.5
Check: examples
Result: ERROR Running examples in ‘imagefluency-Ex.R’ failed The error most likely occurred in: > ### Name: img_complexity > ### Title: Image complexity > ### Aliases: img_complexity > > ### ** Examples > > ## Don't show: > if (.Platform$OS.type != "windows") (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # Example image with high complexity: trees + trees <- img_read(system.file("example_images", "trees.jpg", package = "imagefluency")) + # + # display image + grid::grid.raster(trees) + # + # get complexity + img_complexity(trees) + + + # Example image with low complexity: sky + sky <- img_read(system.file("example_images", "sky.jpg", package = "imagefluency")) + # + # display image + grid::grid.raster(sky) + # + # get complexity + img_complexity(sky) + ## Don't show: + }) # examplesIf > trees <- img_read(system.file("example_images", "trees.jpg", package = "imagefluency")) > grid::grid.raster(trees) > img_complexity(trees) Error in regexpr(as.character(pattern), text, ignore.case, perl, fixed, : NA in coercion to Rboolean Calls: <Anonymous> ... popTemporaryFile -> popTemporaryFile.default -> regexpr Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.5
Check: tests
Result: ERROR Running ‘testthat.R’ Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(imagefluency) > > test_check("imagefluency") free(): double free detected in tcache 2 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.5
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘getting-started.Rmd’ using rmarkdown Quitting from lines 235-263 (getting-started.Rmd) Error: processing vignette 'getting-started.Rmd' failed with diagnostics: NA in coercion to Rboolean --- failed re-building ‘getting-started.Rmd’ SUMMARY: processing the following file failed: ‘getting-started.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.5
Check: tests
Result: ERROR Running ‘testthat.R’ [12s/49s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(imagefluency) > > test_check("imagefluency") [ FAIL 6 | WARN 0 | SKIP 0 | PASS 102 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_complexity.R:12:3'): img_complexity warns if rotate is not a logical value ── Error in `regexpr(as.character(pattern), text, ignore.case, perl, fixed, useBytes)`: NA in coercion to Rboolean Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test_complexity.R:12:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─imagefluency::img_complexity(array(0, dim = c(10, 10, 3)), rotate = "yes") 7. └─imagefluency:::.compl(img, algorithm, rotate) 8. ├─R.utils::gzip(filename = paste0(flname, ".bmp")) 9. └─R.utils::gzip.default(filename = paste0(flname, ".bmp")) 10. ├─R.utils::compressFile(filename = filename, ..., ext = ext, FUN = FUN) 11. └─R.utils::compressFile.default(...) 12. ├─R.utils::popTemporaryFile(destnameT) 13. └─R.utils::popTemporaryFile.default(destnameT) 14. └─base::regexpr(pattern, "", pathnameT) ── Failure ('test_complexity.R:21:3'): img_complexity checks whether algorithm is known ── `img_complexity(...)` threw an error. Message: NA in coercion to Rboolean Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_complexity.R:21:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─imagefluency::img_complexity(...) 7. └─imagefluency:::.compl(img, algorithm, rotate) 8. ├─R.utils::gzip(filename = paste0(flname, ".bmp")) 9. └─R.utils::gzip.default(filename = paste0(flname, ".bmp")) 10. ├─R.utils::compressFile(filename = filename, ..., ext = ext, FUN = FUN) 11. └─R.utils::compressFile.default(...) 12. ├─R.utils::popTemporaryFile(destnameT) 13. └─R.utils::popTemporaryFile.default(destnameT) 14. └─base::regexpr(pattern, "", pathnameT) ── Error ('test_complexity.R:33:3'): img_complexity checks and handles file names as input ── Error in `regexpr(as.character(pattern), text, ignore.case, perl, fixed, useBytes)`: NA in coercion to Rboolean Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_complexity.R:33:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─imagefluency::img_complexity(img_file) 5. └─imagefluency:::.compl(img, algorithm, rotate) 6. ├─R.utils::gzip(filename = paste0(flname, ".bmp")) 7. └─R.utils::gzip.default(filename = paste0(flname, ".bmp")) 8. ├─R.utils::compressFile(filename = filename, ..., ext = ext, FUN = FUN) 9. └─R.utils::compressFile.default(...) 10. ├─R.utils::popTemporaryFile(destnameT) 11. └─R.utils::popTemporaryFile.default(destnameT) 12. └─base::regexpr(pattern, "", pathnameT) ── Error ('test_complexity.R:37:3'): img_complexity normalizes input image if necessary ── Error in `regexpr(as.character(pattern), text, ignore.case, perl, fixed, useBytes)`: NA in coercion to Rboolean Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_complexity.R:37:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─imagefluency::img_complexity(array(100:500, dim = c(50, 50, 3))) 5. └─imagefluency:::.compl(img, algorithm, rotate) 6. ├─R.utils::gzip(filename = paste0(flname, ".bmp")) 7. └─R.utils::gzip.default(filename = paste0(flname, ".bmp")) 8. ├─R.utils::compressFile(filename = filename, ..., ext = ext, FUN = FUN) 9. └─R.utils::compressFile.default(...) 10. ├─R.utils::popTemporaryFile(destnameT) 11. └─R.utils::popTemporaryFile.default(destnameT) 12. └─base::regexpr(pattern, "", pathnameT) ── Error ('test_complexity.R:62:3'): img_complexity works as intended (gives correct / consistent results) ── Error in `regexpr(as.character(pattern), text, ignore.case, perl, fixed, useBytes)`: NA in coercion to Rboolean Backtrace: ▆ 1. └─imagefluency::img_complexity(img) at test_complexity.R:62:3 2. └─imagefluency:::.compl(img, algorithm, rotate) 3. ├─R.utils::gzip(filename = paste0(flname, ".bmp")) 4. └─R.utils::gzip.default(filename = paste0(flname, ".bmp")) 5. ├─R.utils::compressFile(filename = filename, ..., ext = ext, FUN = FUN) 6. └─R.utils::compressFile.default(...) 7. ├─R.utils::popTemporaryFile(destnameT) 8. └─R.utils::popTemporaryFile.default(destnameT) 9. └─base::regexpr(pattern, "", pathnameT) ── Error ('test_complexity.R:90:1'): img_simplicity complements img_complexity ── <Exception/simpleError/error/condition/try-error/Object> Error in `getWritablePathname.Arguments(static, ...)`: File already exists: /tmp/RtmpJA7ui5/working_dir/Rtmp4nYzYK/snjfzj.bmp.gz.tmp [ FAIL 6 | WARN 0 | SKIP 0 | PASS 102 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc