* using log directory 'd:/Rcompile/CRANpkg/local/4.3/hoardr.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'hoardr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'hoardr' version '0.5.4' * 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 'hoardr' 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [2s] OK * checking Rd files ... [0s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [1s] ERROR Running examples in 'hoardr-Ex.R' failed The error most likely occurred in: > ### Name: hoard > ### Title: hoardr class > ### Aliases: hoard > > ### ** Examples > > (x <- hoard()) path: cache path: > x$cache_path_set(path = "foobar", type = 'tempdir') [1] "D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/R/foobar" > x path: foobar cache path: D:\temp\2024_11_13_01_50_00_32639\RtmpKMMFVG/R/foobar > x$path [1] "foobar" > x$cache_path_get() [1] "D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/R/foobar" > > # Or you can set the full path directly with `full_path` > mydir <- file.path(tempdir(), "foobar") > x$cache_path_set(full_path = mydir) [1] "D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar" > x path: foobar cache path: D:\temp\2024_11_13_01_50_00_32639\RtmpKMMFVG/foobar > x$path [1] "foobar" > x$cache_path_get() [1] "D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar" > > # make the directory if doesn't exist already > x$mkdir() > > # list files in dir > x$list() character(0) > cat(1:10000L, file = file.path(x$cache_path_get(), "foo.txt")) > x$list() [1] "D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo.txt" > > # add more files > cat(letters, file = file.path(x$cache_path_get(), "foo2.txt")) > cat(LETTERS, file = file.path(x$cache_path_get(), "foo3.txt")) > > # see if files exist > x$exists("foo.txt") # exists files exists 1 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo.txt TRUE > x$exists(c("foo.txt", "foo3.txt")) # both exist files exists 1 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo.txt TRUE 2 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo3.txt TRUE > x$exists(c("foo.txt", "foo3.txt", "stuff.txt")) # one doesn't exist files exists 1 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo.txt TRUE 2 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/foo3.txt TRUE 3 D:\\temp\\2024_11_13_01_50_00_32639\\RtmpKMMFVG/foobar/stuff.txt FALSE > > # cache details > x$details() directory: D:\temp\2024_11_13_01_50_00_32639\RtmpKMMFVG/foobar Warning in sub(attr(x, "cpath"), "", x[[i]]$file) : TRE pattern compilation error 'Invalid back reference' Error in sub(attr(x, "cpath"), "", x[[i]]$file) : invalid regular expression 'D:\temp\2024_11_13_01_50_00_32639\RtmpKMMFVG/foobar', reason 'Invalid back reference' Calls: -> print.cache_info -> cat -> paste0 -> sub Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library("testthat") > library("hoardr") > test_check("hoardr") [ FAIL 1 | WARN 1 | SKIP 0 | PASS 84 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-HoardClient.R:155:3'): HoardClient works when files exist ────── Error in `sub(attr(x, "cpath"), "", x[[i]]$file)`: invalid regular expression 'D:\temp\2024_11_13_01_50_00_32639\RtmpIb64BG/R/test456', reason 'Invalid back reference' Backtrace: ▆ 1. ├─testthat::expect_output(print(deets1), "") at test-HoardClient.R:155:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─base::print(deets1) 11. └─hoardr:::print.cache_info(deets1) 12. ├─base::cat(...) 13. ├─base::paste0(" file: ", sub(attr(x, "cpath"), "", x[[i]]$file)) 14. └─base::sub(attr(x, "cpath"), "", x[[i]]$file) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 84 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [2s] ERROR Error(s) in re-building vignettes: --- re-building 'hoardr_vignette.Rmd' using rmarkdown Quitting from lines 91-92 [unnamed-chunk-10] (hoardr_vignette.Rmd) Error: processing vignette 'hoardr_vignette.Rmd' failed with diagnostics: invalid regular expression 'D:\temp\2024_11_13_01_50_00_32639\RtmpofTjLq/R/foobar', reason 'Invalid back reference' --- failed re-building 'hoardr_vignette.Rmd' SUMMARY: processing the following file failed: 'hoardr_vignette.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 3 ERRORs