Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(utf8)
  > 
  > test_check("utf8")
  -- Skip (test-utf8_encode.R:41:5): 'utf8_encode' can encode extended Unicode ---
  Reason: On windows
  
  -- Skip (test-utf8_format.R:36:5): 'format' can handle long text in Unicode loca
  Reason: On windows
  
  -- FAILURE (test-utf8_format.R:92:5): 'format' can handle long text in C locale 
  utf8_encode(utf8_format(raw, chars = 8, justify = "none")) not equal to format(short, justify = "none").
  4/9 mismatches
  x[4]: "?\\n\\u2026"
  y[4]: "?\\n..."
  
  x[5]: "\\u0001\\u2026"
  y[5]: "\\u0001..."
  
  x[8]: "\\u6027?\\u2026"
  y[8]: "\\u6027?..."
  
  x[9]: "\\u6027\\u2026"
  y[9]: "\\u6027..."
  
  -- FAILURE (test-utf8_format.R:96:5): 'format' can handle long text in C locale 
  sub("\\s+$", "", left) not equal to `short`.
  4/9 mismatches
  x[4]: "?\\n\\u2026"
  y[4]: "?\\n..."
  
  x[5]: "\\u0001\\u2026"
  y[5]: "\\u0001..."
  
  x[8]: "\\u6027?\\u2026"
  y[8]: "\\u6027?..."
  
  x[9]: "\\u6027\\u2026"
  y[9]: "\\u6027..."
  
  -- FAILURE (test-utf8_format.R:97:5): 'format' can handle long text in C locale 
  as.numeric(nchar(left)) not equal to rep(10, length(raw)).
  9/9 mismatches (average diff: 2.44)
  [1]  8 - 10 == -2
  [2]  8 - 10 == -2
  [3]  8 - 10 == -2
  [4] 13 - 10 ==  3
  [5] 13 - 10 ==  3
  [6]  8 - 10 == -2
  [7]  8 - 10 == -2
  [8] 13 - 10 ==  3
  [9] 13 - 10 ==  3
  
  -- FAILURE (test-utf8_format.R:100:5): 'format' can handle long text in C locale
  sub("^\\s+", "", sub("\\s+$", "", centre)) not equal to `short`.
  4/9 mismatches
  x[4]: "?\\n\\u2026"
  y[4]: "?\\n..."
  
  x[5]: "\\u0001\\u2026"
  y[5]: "\\u0001..."
  
  x[8]: "\\u6027?\\u2026"
  y[8]: "\\u6027?..."
  
  x[9]: "\\u6027\\u2026"
  y[9]: "\\u6027..."
  
  -- FAILURE (test-utf8_format.R:101:5): 'format' can handle long text in C locale
  as.numeric(nchar(centre)) not equal to rep(10, length(raw)).
  9/9 mismatches (average diff: 2.44)
  [1]  8 - 10 == -2
  [2]  8 - 10 == -2
  [3]  8 - 10 == -2
  [4] 13 - 10 ==  3
  [5] 13 - 10 ==  3
  [6]  8 - 10 == -2
  [7]  8 - 10 == -2
  [8] 13 - 10 ==  3
  [9] 13 - 10 ==  3
  
  -- FAILURE (test-utf8_format.R:104:5): 'format' can handle long text in C locale
  sub("^\\s+", "", right) not equal to `rshort`.
  4/9 mismatches
  x[4]: "\\u2026\\n\\u6027"
  y[4]: "...\\n\\u6027"
  
  x[5]: "\\u2026\\u6027"
  y[5]: "...\\u6027"
  
  x[8]: "\\u2026?\\n"
  y[8]: "...?\\n"
  
  x[9]: "\\u2026\\u0001"
  y[9]: "...\\u0001"
  
  -- FAILURE (test-utf8_format.R:105:5): 'format' can handle long text in C locale
  as.numeric(nchar(right)) not equal to rep(11, length(raw)).
  9/9 mismatches (average diff: 2.44)
  [1]  9 - 11 == -2
  [2]  9 - 11 == -2
  [3]  9 - 11 == -2
  [4] 14 - 11 ==  3
  [5] 14 - 11 ==  3
  [6]  9 - 11 == -2
  [7]  9 - 11 == -2
  [8] 14 - 11 ==  3
  [9] 14 - 11 ==  3
  
  -- Skip (test-utf8_format.R:123:5): 'format' can handle high code points in Unic
  Reason: On windows
  
  -- FAILURE (test-utf8_format.R:158:5): 'format' can handle marks ---------------
  utf8_format(raw, chars = 6, justify = "left") not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- FAILURE (test-utf8_format.R:160:5): 'format' can handle marks ---------------
  utf8_format(raw, chars = 6, justify = "centre") not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- FAILURE (test-utf8_format.R:162:5): 'format' can handle marks ---------------
  utf8_format(raw, chars = 5, justify = "right") not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- FAILURE (test-utf8_format.R:196:5): 'format' can handle zero, or NULL chars -
  as.character(utf8_format(raw, chars = 0, justify = "left")) not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- FAILURE (test-utf8_format.R:198:5): 'format' can handle zero, or NULL chars -
  as.character(utf8_format(raw, chars = 0, justify = "centre")) not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- FAILURE (test-utf8_format.R:200:5): 'format' can handle zero, or NULL chars -
  as.character(utf8_format(raw, chars = 0, justify = "right")) not equal to "...".
  1/1 mismatches
  x[1]: ""
  y[1]: "..."
  
  -- Skip (test-utf8_print.R:4:5): 'utf8_print' can print unicode ----------------
  Reason: On windows
  
  -- Skip (test-utf8_print.R:307:5): 'utf8_print' handles Unicode correctly ------
  Reason: On windows
  
  -- Skip (test-utf8_width.R:16:5): 'utf8_width' computes widths for extended unic
  Reason: On windows
  
  -- Skipped tests  --------------------------------------------------------------
  * On windows (6)
  
  == testthat results  ===========================================================
  FAILURE (test-utf8_format.R:92:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:96:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:97:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:100:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:101:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:104:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:105:5): 'format' can handle long text in C locale
  FAILURE (test-utf8_format.R:158:5): 'format' can handle marks
  FAILURE (test-utf8_format.R:160:5): 'format' can handle marks
  FAILURE (test-utf8_format.R:162:5): 'format' can handle marks
  FAILURE (test-utf8_format.R:196:5): 'format' can handle zero, or NULL chars
  FAILURE (test-utf8_format.R:198:5): 'format' can handle zero, or NULL chars
  FAILURE (test-utf8_format.R:200:5): 'format' can handle zero, or NULL chars
  
  [ FAIL 13 | WARN 0 | SKIP 6 | PASS 158 ]
  Error: Test failures
  Execution halted