Running ‘testthat.R’ [122s/171s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eplusr)
  > eplusr_option(verbose_info = FALSE)
  $verbose_info
  [1] FALSE
  
  > 
  > test_check("eplusr")
  trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.6.0/idd/V8-8-0-Energy%2B.idd'
  Content type 'text/plain; charset=utf-8' length 4055399 bytes (3.9 MB)
  ==================================================
  downloaded 3.9 MB
  
  trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.6.0/idd/V8-9-0-Energy%2B.idd'
  Content type 'text/plain; charset=utf-8' length 4390209 bytes (4.2 MB)
  ==================================================
  downloaded 4.2 MB
  
  [ FAIL 5 | WARN 0 | SKIP 96 | PASS 2024 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (94)
  • is_windows() is not TRUE (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-idf.R:1133:5): $print() ─────────────────────────────────────────
  Error in `nchar(crayon::strip_style(x), "width")`: width is not computable in "bytes" encoding, element 2
  Backtrace:
       ▆
    1. ├─testthat::expect_output(idf$print()) at test-idf.R:1133:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─idf$print()
   11.   └─eplusr:::idf_print(self, private, zoom, order)
   12.     ├─cli::cat_line(str_trunc(out))
   13.     │ └─base::paste0(..., collapse = "\n")
   14.     └─eplusr:::str_trunc(out)
  ── Error (test-idf.R:1183:5): format.Idf, as.character.Idf and etc ─────────────
  Error in `nchar(crayon::strip_style(x), "width")`: width is not computable in "bytes" encoding, element 2
  Backtrace:
       ▆
    1. ├─testthat::expect_output(print(idf)) at test-idf.R:1183:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::print(idf)
   11. └─eplusr:::print.Idf(idf)
   12.   └─x$print(zoom = zoom, order = order)
   13.     └─eplusr:::idf_print(self, private, zoom, order)
   14.       ├─cli::cat_line(str_trunc(out))
   15.       │ └─base::paste0(..., collapse = "\n")
   16.       └─eplusr:::str_trunc(out)
  ── Error (test-idfobj.R:509:5): $print() ───────────────────────────────────────
  Error in `nchar(crayon::strip_style(x), "width")`: width is not computable in "bytes" encoding, element 2
  Backtrace:
       ▆
    1. ├─testthat::expect_output(ver$print()) at test-idfobj.R:509:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─ver$print()
   11.   └─eplusr:::idfobj_print(...)
   12.     ├─cli::cat_line(str_trunc(fmt[-length(fmt)]))
   13.     │ └─base::paste0(..., collapse = "\n")
   14.     └─eplusr:::str_trunc(fmt[-length(fmt)])
  ── Error (test-idfobj.R:531:5): format.IdfObject, as.character.IdfObject, etc ──
  Error in `nchar(crayon::strip_style(x), "width")`: width is not computable in "bytes" encoding, element 2
  Backtrace:
       ▆
    1. ├─testthat::expect_output(print(con)) at test-idfobj.R:531:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::print(con)
   11. └─eplusr:::print.IdfObject(con)
   12.   └─x$print(...)
   13.     └─eplusr:::idfobj_print(...)
   14.       ├─cli::cat_line(str_trunc(fmt[-length(fmt)]))
   15.       │ └─base::paste0(..., collapse = "\n")
   16.       └─eplusr:::str_trunc(fmt[-length(fmt)])
  ── Error (test-impl-idf.R:2039:5): Del ─────────────────────────────────────────
  Error in `nchar(crayon::strip_style(x), "width")`: width is not computable in "bytes" encoding, element 2
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-impl-idf.R:2039:4
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─eplusr::with_verbose(...) at test-impl-idf.R:2039:20
    7. │ └─eplusr::with_option(list(verbose_info = TRUE), expr)
    8. │   └─base::force(expr)
    9. └─eplusr::del_idf_object(...)
   10.   ├─base::paste0(" ", capture.output(print.IdfRelation(rel)), collapse = "\n")
   11.   ├─utils::capture.output(print.IdfRelation(rel))
   12.   │ └─base::withVisible(...elt(i))
   13.   └─eplusr:::print.IdfRelation(rel)
   14.     └─eplusr:::print.IdfRelationTo(x[["ref_to"]])
   15.       ├─cli::cat_line(str_trunc(s))
   16.       │ └─base::paste0(..., collapse = "\n")
   17.       └─eplusr:::str_trunc(s)
  
  [ FAIL 5 | WARN 0 | SKIP 96 | PASS 2024 ]
  Error: Test failures
  Execution halted