Running 'testthat.R' [197s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(styler)
  > 
  > test_check("styler")
  -- 1. Error: non-ASCII characters are handled properly for text styling  -------
  <text>:1:4: unexpected input
  1: glÃ¼
         ^
  Backtrace:
    1. styler::style_text("glück <-3")
    2. styler:::transformer(text)
   10. styler:::parse_transform_serialize_r(., transformers, warn_empty = warn_empty)
   11. styler:::compute_parse_data_nested(text)
   15. styler:::tokenize(text)
   19. styler:::get_parse_data(text, include_text = NA)
   20. styler:::parse_safely(text, keep.source = TRUE)
  
  Styling  1  files:
   D:\temp\Rtmpkb1ZyO\file2d5441281584f.R <U+203C> 
  ----------------------------------------
  Status	Count	Legend 
  v 	0	File unchanged.
  i 	0	File changed.
  x 	1	Styling threw an error.
  ----------------------------------------
  -- 2. Failure: non-ASCII characters are handled properly for file styling (@test
  `result` not equal to "Glück + 1".
  1/1 mismatches
  x[1]: "Glück+1"
  y[1]: "Glück + 1"
  
  -- 3. Failure: function multiline without curly brackets (@test-indention_operat
  `test_collection(...)` generated warnings:
  * function-multiline-no-braces-strict-in.R was different from function-multiline-no-braces-strict-out.R
  
  -- 4. Failure: function multiline without curly brackets (@test-indention_operat
  `test_collection(...)` generated warnings:
  * function-multiline-no-braces-non-strict-in.R was different from function-multiline-no-braces-non-strict-out.R
  
  -- 5. Failure: CRLF EOLs fail with informative error (@test-parsing.R#50)  -----
  `style_text("glück <- 3\r\n glück + 1")` threw an error with unexpected message.
  Expected match: "Please change the EOL character in your editor to Unix style and try again."
  Actual message: "<text>:1:4: unexpected input\n1: glÃ¼\n       ^"
  Backtrace:
    1. testthat::expect_error(...)
    6. styler::style_text("glück <- 3\r\n glück + 1")
    7. styler:::transformer(text)
   11. styler:::parse_transform_serialize_r(., transformers, warn_empty = warn_empty)
   16. styler:::compute_parse_data_nested(text)
   20. styler:::tokenize(text)
   24. styler:::get_parse_data(text, include_text = NA)
   25. styler:::parse_safely(text, keep.source = TRUE)
  
  -- 6. Failure: CRLF EOLs fail with informative error (@test-parsing.R#54)  -----
  `style_text(c("glück <- 3", "glück + 1\r\n 3"))` threw an error with unexpected message.
  Expected match: "Please change the EOL character in your editor to Unix style and try again."
  Actual message: "<text>:1:4: unexpected input\n1: glÃ¼\n       ^"
  Backtrace:
    1. testthat::expect_error(...)
    6. styler::style_text(c("glück <- 3", "glück + 1\r\n 3"))
    7. styler:::transformer(text)
   11. styler:::parse_transform_serialize_r(., transformers, warn_empty = warn_empty)
   16. styler:::compute_parse_data_nested(text)
   20. styler:::tokenize(text)
   24. styler:::get_parse_data(text, include_text = NA)
   25. styler:::parse_safely(text, keep.source = TRUE)
  
  == testthat results  ===========================================================
  [ OK: 228 | SKIPPED: 4 | WARNINGS: 2 | FAILED: 6 ]
  1. Error: non-ASCII characters are handled properly for text styling 
  2. Failure: non-ASCII characters are handled properly for file styling (@test-encoding.R#13) 
  3. Failure: function multiline without curly brackets (@test-indention_operators.R#36) 
  4. Failure: function multiline without curly brackets (@test-indention_operators.R#39) 
  5. Failure: CRLF EOLs fail with informative error (@test-parsing.R#50) 
  6. Failure: CRLF EOLs fail with informative error (@test-parsing.R#54) 
  
  Error: testthat unit tests failed
  Execution halted