* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/flair.Rcheck’ * using R Under development (unstable) (2022-12-13 r83440) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘flair/DESCRIPTION’ ... OK * this is package ‘flair’ version ‘0.0.2’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘flair’ can be installed ... 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 ... 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 dependencies in R code ... NOTE Namespaces in Imports field not imported from: ‘dplyr’ ‘evaluate’ ‘ggplot2’ All declared Imports should be used. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 LazyData ... NOTE 'LazyData' is specified without a 'data' directory * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘flair-Ex.R’ failed The error most likely occurred in: > ### Name: decorate_code > ### Title: Creates an object of the class 'with_flair' > ### Aliases: decorate_code > > ### ** Examples > > > # When run in console, this will print the results of mean(1:10) > my_code <- decorate_code(text = 'mean(1:10)') %>% flair_funs() [1] 5.5 Error in `str_extract_all()`: ! `string` must be a vector, not a object. Backtrace: ▆ 1. ├─decorate_code(text = "mean(1:10)") %>% flair_funs() 2. ├─flair::flair_funs(.) 3. │ ├─flair::flair_rx(x, funs_regexp, ...) 4. │ └─flair:::flair_rx.with_flair(x, funs_regexp, ...) 5. │ └─purrr::map(...) 6. │ └─flair (local) .f(.x[[i]], ...) 7. │ ├─flair::flair_rx(...) 8. │ └─flair:::flair_rx.default(...) 9. │ └─... %>% unlist() 10. ├─base::unlist(.) 11. ├─stringr::str_extract_all(., "(\\<[^\\<\\>]*\\>)|((?<=\\>|^)([^\\<]|(\\<(?=(\\-|\\<))))*(?=\\<|$))") 12. │ └─stringr:::check_lengths(string, pattern) 13. │ └─vctrs::vec_size_common(...) 14. └─vctrs:::stop_scalar_type(``(``), "string", ``) 15. └─vctrs:::stop_vctrs(...) 16. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call)) Execution halted * checking examples with --run-donttest ... ERROR Running examples in ‘flair-Ex.R’ failed The error most likely occurred in: > ### Name: decorate_code > ### Title: Creates an object of the class 'with_flair' > ### Aliases: decorate_code > > ### ** Examples > > > # When run in console, this will print the results of mean(1:10) > my_code <- decorate_code(text = 'mean(1:10)') %>% flair_funs() [1] 5.5 Error in `str_extract_all()`: ! `string` must be a vector, not a object. Backtrace: ▆ 1. ├─decorate_code(text = "mean(1:10)") %>% flair_funs() 2. ├─flair::flair_funs(.) 3. │ ├─flair::flair_rx(x, funs_regexp, ...) 4. │ └─flair:::flair_rx.with_flair(x, funs_regexp, ...) 5. │ └─purrr::map(...) 6. │ └─flair (local) .f(.x[[i]], ...) 7. │ ├─flair::flair_rx(...) 8. │ └─flair:::flair_rx.default(...) 9. │ └─... %>% unlist() 10. ├─base::unlist(.) 11. ├─stringr::str_extract_all(., "(\\<[^\\<\\>]*\\>)|((?<=\\>|^)([^\\<]|(\\<(?=(\\-|\\<))))*(?=\\<|$))") 12. │ └─stringr:::check_lengths(string, pattern) 13. │ └─vctrs::vec_size_common(...) 14. └─vctrs:::stop_scalar_type(``(``), "string", ``) 15. └─vctrs:::stop_vctrs(...) 16. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call)) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(flair) > > test_check("flair") [1] 10 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-flair.R:29'): flair_rx works for with_flair object ───────────── Error in `str_extract_all(., "(\\<[^\\<\\>]*\\>)|((?<=\\>|^)([^\\<]|(\\<(?=(\\-|\\<))))*(?=\\<|$))")`: `string` must be a vector, not a object. Backtrace: ▆ 1. ├─flair::flair_rx(test_dc, test_regexp, color = "red", size = "30px") at test-flair.R:29:2 2. ├─flair:::flair_rx.with_flair(...) 3. │ └─purrr::map(...) 4. │ └─flair (local) .f(.x[[i]], ...) 5. │ ├─flair::flair_rx(...) 6. │ └─flair:::flair_rx.default(...) 7. │ └─... %>% unlist() 8. ├─base::unlist(.) 9. ├─stringr::str_extract_all(., "(\\<[^\\<\\>]*\\>)|((?<=\\>|^)([^\\<]|(\\<(?=(\\-|\\<))))*(?=\\<|$))") 10. │ └─stringr:::check_lengths(string, pattern) 11. │ └─vctrs::vec_size_common(...) 12. └─vctrs:::stop_scalar_type(``(``), "string", ``) 13. └─vctrs:::stop_vctrs(...) 14. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call)) ── Error ('test-flair_lines.R:15'): flair_lines works on with_flair objects ──── Error in `str_count(.x, "\\n|(
)")`: `string` must be a vector, not a object. Backtrace: ▆ 1. ├─flair::flair_lines(test_wf, c(2:4)) at test-flair_lines.R:15:2 2. ├─flair:::flair_lines.with_flair(test_wf, c(2:4)) 3. │ └─... %>% map2(1:sum(where_sources), ~ 0:.x + .y) 4. ├─purrr::map2(., 1:sum(where_sources), ~0:.x + .y) 5. ├─purrr::map(., ~str_count(.x, "\\n|(
)")) 6. │ └─flair (local) .f(.x[[i]], ...) 7. │ └─stringr::str_count(.x, "\\n|(
)") 8. │ └─stringr:::check_lengths(string, pattern) 9. │ └─vctrs::vec_size_common(...) 10. └─vctrs:::stop_scalar_type(``(``), "string", ``) 11. └─vctrs:::stop_vctrs(...) 12. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call)) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5 ] 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 ... ERROR Error(s) in re-building vignettes: ... --- re-building ‘how_to_flair.Rmd’ using rmarkdown Quitting from lines 32-43 (how_to_flair.Rmd) Error: processing vignette 'how_to_flair.Rmd' failed with diagnostics: `string` must be a vector, not a object. --- failed re-building ‘how_to_flair.Rmd’ SUMMARY: processing the following file failed: ‘how_to_flair.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 4 ERRORs, 2 NOTEs See ‘/data/blackswan/ripley/R/packages/tests-devel/flair.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:35.03, 29.09 + 5.55