CRAN Package Check Results for Package filecacher

Last updated on 2024-01-14 04:57:55 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.7 1.45 33.97 35.42 OK
r-devel-linux-x86_64-debian-gcc 0.2.7 1.86 26.10 27.96 OK
r-devel-linux-x86_64-fedora-clang 0.2.7 43.85 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.7 42.31 OK
r-devel-windows-x86_64 0.2.7 3.00 50.00 53.00 ERROR
r-patched-linux-x86_64 0.2.7 2.51 32.67 35.18 OK
r-release-linux-x86_64 0.2.7 2.41 32.44 34.85 OK
r-release-macos-arm64 0.2.7 21.00 OK
r-release-macos-x86_64 0.2.7 50.00 OK
r-release-windows-x86_64 0.2.7 3.00 52.00 55.00 OK
r-oldrel-macos-arm64 0.2.7 25.00 OK
r-oldrel-windows-x86_64 0.2.7 4.00 54.00 58.00 OK

Additional issues

noSuggests

Check Details

Version: 0.2.7
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘arrow’ Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.7
Check: examples
Result: ERROR Running examples in ‘filecacher-Ex.R’ failed The error most likely occurred in: > ### Name: vectorize_reader > ### Title: Vectorize a single-input read function to read multiple files > ### Aliases: vectorize_reader > > ### ** Examples > > # Convert iris$Species to character to simplify comparison. > iris_chr <- iris > iris_chr$Species <- as.character(iris$Species) > > > # `iris` data frame separated into multiple subset files. > iris_files <- system.file("extdata", package = "filecacher") |> + list.files(pattern = "_only[.]csv$", full.names = TRUE) > > try(read.csv(iris_files)) Error in file(file, "rt") : invalid 'description' argument > vectorize_reader(read.csv)( + iris_files, + stringsAsFactors = TRUE + ) |> + all.equal(iris) [1] TRUE > > try(arrow::read_csv_arrow(iris_files)) Error in loadNamespace(x) : there is no package called ‘arrow’ > vectorize_reader(arrow::read_csv_arrow)( + iris_files + ) |> + as.data.frame() |> + all.equal(iris_chr) Error in loadNamespace(x) : there is no package called ‘arrow’ Calls: all.equal ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.7
Check: tests
Result: ERROR Running ‘testthat.R’ [8s/11s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(filecacher) > > test_check("filecacher") [ FAIL 4 | WARN 0 | SKIP 0 | PASS 126 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cached_read.R:158:3'): cached_read with skip_file_info and type='parquet' works ── Error in `interpret_cache_type(type, ext_prefix = ext_prefix)`: The `arrow` package must be installed to use `type='parquet'`. Backtrace: ▆ 1. └─filecacher (local) expect_skip_file_info_works("cache_parquet", type = "parquet") at test-cached_read.R:158:3 2. ├─dplyr::select(...) at test-cached_read.R:129:5 3. └─filecacher::cached_read(...) at test-cached_read.R:129:5 4. └─filecacher::file_cache(cache = cache, type = type) 5. └─filecacher:::interpret_cache_type(type, ext_prefix = ext_prefix) ── Error ('test-file_cache.R:46:3'): file_cache with type=parquet works ──────── Error in `interpret_cache_type(type, ext_prefix = ext_prefix)`: The `arrow` package must be installed to use `type='parquet'`. Backtrace: ▆ 1. └─filecacher::file_cache(tf, type = "parquet") at test-file_cache.R:46:3 2. └─filecacher:::interpret_cache_type(type, ext_prefix = ext_prefix) ── Error ('test-interpret_type.R:17:3'): interpret_cache_type extension works ── Error in `interpret_cache_type("parquet")`: The `arrow` package must be installed to use `type='parquet'`. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-interpret_type.R:17:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─filecacher:::interpret_cache_type("parquet") ── Error ('test-interpret_type.R:41:3'): interpret_cache_type read/write works ── Error in `interpret_cache_type("parquet")`: The `arrow` package must be installed to use `type='parquet'`. Backtrace: ▆ 1. ├─filecacher (local) expect_fns_equal(interpret_cache_type("parquet")$read, arrow::read_parquet) at test-interpret_type.R:41:3 2. │ ├─testthat::expect_true(fns_equal(x, y)) at test-interpret_type.R:35:3 3. │ │ └─testthat::quasi_label(enquo(object), label, arg = "object") 4. │ │ └─rlang::eval_bare(expr, quo_get_env(quo)) 5. │ └─filecacher:::fns_equal(x, y) 6. │ └─rlang::is_function(x) 7. └─filecacher:::interpret_cache_type("parquet") [ FAIL 4 | WARN 0 | SKIP 0 | PASS 126 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.7
Check: tests
Result: ERROR Running 'testthat.R' [7s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(filecacher) > > test_check("filecacher") [ FAIL 1 | WARN 3 | SKIP 0 | PASS 152 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-file_cache.R:12:5'): file_cache with cache=NULL ────────────── fs::dir_exists(expected_dir) is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 1 | WARN 3 | SKIP 0 | PASS 152 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64