* using log directory 'd:/Rcompile/CRANpkg/local/4.4/glossr.Rcheck' * using R version 4.4.0 (2024-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'glossr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'glossr' version '0.7.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 'glossr' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [5s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [6s] ERROR Running 'testthat.R' [6s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(glossr) > > test_check("glossr") [ FAIL 2 | WARN 4 | SKIP 3 | PASS 86 ] ══ Skipped tests (3) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-markdown.R:8:3', 'test-markdown.R:23:3', 'test-markdown.R:39:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-gloss_render.R:17:3'): Classes are correct ───────────────────── Error in `purrr::map(gloss_lines, function(g) { g <- if (inherits(g, "flextable")) g else gloss_table(g) flextable::flextable_to_rmd(g, ft.align = "left", print = FALSE) })`: i In index: 1. Caused by error in `setwd()`: ! character argument expected Backtrace: ▆ 1. ├─testthat::expect_s3_class(gloss_word(my_gloss), "gloss") at test-gloss_render.R:17:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─glossr::gloss_word(my_gloss) 5. │ ├─... %>% 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. │ └─glossr (local) .f(.x[[i]], ...) 12. │ └─flextable::flextable_to_rmd(g, ft.align = "left", print = FALSE) 13. │ └─knitr::knit_child(input = tmp_file, envir = environment(), quiet = TRUE) 14. │ └─knitr::knit(..., tangle = opts_knit$get("tangle"), envir = envir) 15. │ └─base::setwd(opts_knit$get("output.dir")) 16. ├─base::unlist(.) 17. └─base::.handleSimpleError(...) 18. └─purrr (local) h(simpleError(msg, call)) 19. └─cli::cli_abort(...) 20. └─rlang::abort(...) ── Error ('test-gloss_render.R:76:3'): gloss label renders in word ───────────── Error in `purrr::map(gloss_lines, function(g) { g <- if (inherits(g, "flextable")) g else gloss_table(g) flextable::flextable_to_rmd(g, ft.align = "left", print = FALSE) })`: i In index: 1. Caused by error in `setwd()`: ! character argument expected Backtrace: ▆ 1. ├─glossr::gloss_word(my_gloss) at test-gloss_render.R:76:3 2. │ ├─... %>% unlist() 3. │ └─purrr::map(...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─glossr (local) .f(.x[[i]], ...) 9. │ └─flextable::flextable_to_rmd(g, ft.align = "left", print = FALSE) 10. │ └─knitr::knit_child(input = tmp_file, envir = environment(), quiet = TRUE) 11. │ └─knitr::knit(..., tangle = opts_knit$get("tangle"), envir = envir) 12. │ └─base::setwd(opts_knit$get("output.dir")) 13. ├─base::unlist(.) 14. └─base::.handleSimpleError(...) 15. └─purrr (local) h(simpleError(msg, call)) 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) [ FAIL 2 | WARN 4 | SKIP 3 | PASS 86 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [13s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR