- using R Under development (unstable) (2024-03-15 r86142)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘styler/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘styler’ version ‘1.10.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 ‘styler’ can be installed ... [14s/32s] OK
See the install log for details.
- 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 ... 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 whether startup messages can be suppressed ... 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 ... [23s/32s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [209s/112s] ERROR
Running ‘testthat.R’ [209s/112s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(styler)
> test_check("styler") # checks multiple files, in parallel
Starting 2 test processes
[ FAIL 1 | WARN 0 | SKIP 23 | PASS 540 ]
══ Skipped tests (23) ══════════════════════════════════════════════════════════
• .Platform$OS.type != "windows" is TRUE (1): 'test-io.R:9:3'
• On CRAN (21): 'test-cache-clean-up.R:2:3', 'test-cache-high-level-api.R:3:3',
'test-cache-high-level-api.R:29:3', 'test-cache-high-level-api.R:40:3',
'test-cache-high-level-api.R:60:3', 'test-cache-high-level-api.R:74:3',
'test-cache-high-level-api.R:91:3', 'test-cache-high-level-api.R:99:3',
'test-cache-high-level-api.R:139:3', 'test-cache-high-level-api.R:152:3',
'test-cache-with-r-cache.R:32:3', 'test-helpers.R:3:3',
'test-helpers.R:14:3', 'test-public_api-1.R:108:9', 'test-roundtrip.R:13:3',
'test-roundtrip.R:19:3', 'test-public_api-3.R:164:3', 'test-utils.R:9:3',
'test-zzz.R:3:3', 'tests-cache-require-serial.R:22:3',
'tests-cache-require-serial.R:33:3'
• Running in parallel (1): 'test-cache-clean-up.R:15:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-parsing.R:59:3'): mixed CRLF / LF EOLs fail ────────────────────
Error in `parse_safely(text, keep.source = TRUE)`: <text>:2:6: unexpected invalid token
1: a + 3 -4 -> x
2: x + 2
^
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-parsing.R:59:3
2. │ └─testthat:::expect_condition_matching(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─styler::style_text("a + 3 -4 -> x\nx + 2\r\n glück + 1")
8. │ └─styler (local) transformer(text)
9. │ └─text %>% ...
10. ├─styler:::parse_transform_serialize_r(...)
11. │ └─styler::compute_parse_data_nested(text, transformers, more_specs)
12. │ └─styler:::text_to_flat_pd(text, transformers, more_specs = more_specs)
13. │ ├─... %>% shallowify()
14. │ └─styler:::tokenize(text)
15. │ ├─... %>% enhance_mapping_special()
16. │ └─styler:::get_parse_data(text, include_text = TRUE)
17. │ └─styler:::parse_safely(text, keep.source = TRUE)
18. │ └─rlang::abort(tried_parsing$message)
19. ├─styler:::shallowify(.)
20. ├─styler:::add_attributes_caching(., transformers, more_specs = more_specs)
21. │ └─base::nrow(pd_flat)
22. ├─styler:::add_stylerignore(.)
23. │ └─base::trimws(pd_flat$text)
24. │ ├─base (local) mysub(...)
25. │ │ └─base::sub(re, "", x, perl = TRUE)
26. │ │ └─base::is.factor(x)
27. │ └─base (local) mysub(paste0("^", whitespace, "+"), x)
28. │ └─base::sub(re, "", x, perl = TRUE)
29. │ └─base::is.factor(x)
30. ├─styler:::add_terminal_token_after(.)
31. │ └─pd_flat %>% filter(terminal) %>% arrange_pos_id()
32. ├─styler:::arrange_pos_id(.)
33. ├─styler:::filter(., terminal)
34. │ └─base::subset(.data, ...)
35. ├─styler:::add_terminal_token_before(.)
36. │ └─pd_flat %>% filter(terminal) %>% arrange_pos_id()
37. ├─styler:::arrange_pos_id(.)
38. ├─styler:::filter(., terminal)
39. │ └─base::subset(.data, ...)
40. ├─styler:::enhance_mapping_special(.)
41. └─styler:::ensure_correct_txt(., text)
42. └─styler:::is_insufficiently_parsed_string(pd)
43. └─base::grepl("^\\[", pd$text)
44. └─base::is.factor(x)
[ FAIL 1 | WARN 0 | SKIP 23 | PASS 540 ]
Deleting unused snapshots:
• public_api.md
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [40s/57s] OK
- checking PDF version of manual ... [16s/23s] OK
- checking HTML version of manual ... [9s/16s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR