Running 'testthat.R' [18s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(renderthis)
  > 
  > test_check("renderthis")
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  profile High, level 6.0, 4:2:0, 8-bit
  264 - core 161 r3053M c347e7a - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  Output #0, mp4, to 'D:\temp\Rtmp2lsdbH\file3324025636428\basic.mp4':
    Metadata:
      encoder         : Lavf58.29.100
      Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 946x710, q=-1--1, 90k tbn
  
  Adding frame 1 at timestamp 0.00sec (50%)
  Adding frame 2 at timestamp 2.00sec (50%)
  Adding frame 3 at timestamp 4.00sec (50%) - video stream completed!
  frame I:2     Avg QP: 2.36  size:  3705
  frame P:1     Avg QP:18.59  size:    48
  mb I  I16..4: 96.9%  0.7%  2.4%
  mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
  8x8 transform intra:0.7%
  coded y,uvDC,uvAC intra: 2.2% 2.0% 1.6% inter: 0.0% 0.1% 0.0%
  i16 v,h,dc,p: 96%  1%  2%  0%
  i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 12% 20%  4%  8%  5%  4%  8%  8%
  i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 24% 15%  2%  3%  4%  2%  4%  3%
  i8c dc,h,v,p: 96%  3%  1%  0%
  Weighted P-Frames: Y:0.0% UV:0.0%
  kb/s:9.94
  Output #0, image2, to 'D:\temp\Rtmp2lsdbH\file3324042cf5ed4\image_%6d.png':
    Metadata:
      encoder         : Lavf58.29.100
      Stream #0:0: Video: png, rgb24, 946x710, q=2-31, 200 kb/s, 90k tbn
  
  Adding frame 1 at timestamp 0.00sec (0%)
  Adding frame 2 at timestamp 0.00sec (0%) - video stream completed!
  using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  profile High, level 6.0, 4:2:0, 8-bit
  264 - core 161 r3053M c347e7a - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  Output #0, mp4, to 'D:\temp\Rtmp2lsdbH\file332407c3858a7\basic-wide.mp4':
    Metadata:
      encoder         : Lavf58.29.100
      Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1260x710, q=-1--1, 90k tbn
  filter context - w: 1261 h: 710 fmt: 26, incoming frame - w: 1261 h: 710 fmt: 8 pts_time: 2
  Changing video frame properties on the fly is not supported by all filters.
  filter context - w: 1261 h: 710 fmt: 26, incoming frame - w: 1261 h: 710 fmt: 8 pts_time: 3
  Changing video frame properties on the fly is not supported by all filters.
  
  Adding frame 1 at timestamp 0.00sec (66%)
  Adding frame 2 at timestamp 1.00sec (66%)
  Adding frame 3 at timestamp 3.00sec (66%)
  Adding frame 4 at timestamp 2.00sec (66%) - video stream completed!
  frame I:2     Avg QP: 2.02  size:  3434
  frame P:1     Avg QP:17.67  size:  6228
  frame B:1     Avg QP:12.06  size:   196
  consecutive B-frames: 50.0% 50.0%  0.0%  0.0%
  mb I  I16..4: 97.7%  0.4%  1.9%
  mb P  I16..4:  9.4%  6.9%  4.1%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:79.6%
  mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  6.0%  0.0%  0.0%  direct: 0.0%  skip:93.9%  L0: 5.6% L1:94.2% BI: 0.2%
  8x8 transform intra:3.5% inter:10.0%
  coded y,uvDC,uvAC intra: 2.5% 1.3% 1.1% inter: 0.1% 0.0% 0.0%
  i16 v,h,dc,p: 94%  4%  2%  0%
  i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 49%  1% 44%  1%  1%  1%  1%  1%  1%
  i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 24% 15%  1%  3%  3%  3%  3%  3%
  i8c dc,h,v,p: 96%  3%  1%  0%
  Weighted P-Frames: Y:0.0% UV:0.0%
  kb/s:26.58
  Output #0, image2, to 'D:\temp\Rtmp2lsdbH\file332405ae460a0\image_%6d.png':
    Metadata:
      encoder         : Lavf58.29.100
      Stream #0:0: Video: png, rgb24, 1260x710, q=2-31, 200 kb/s, 90k tbn
  
  Adding frame 1 at timestamp 0.00sec (0%)
  Adding frame 2 at timestamp 0.00sec (0%)
  Adding frame 3 at timestamp 0.00sec (0%) - video stream completed!
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  Error trying to find path to Chrome
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 109 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Chrome is not installed (12)
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-html.R:33:5): to_html() output in sub-directory ─────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-html.R:33:4
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...)
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─renderthis::to_html("slides/slides.Rmd", "output/slides.html")
   10.   └─renderthis:::build_html_rmd_args(...)
   11.     └─renderthis:::self_contained_is_required(input, output_file)
   12.       └─cli::cli_alert_warning(...)
   13.         └─cli:::cli__message(...)
   14.           └─cli:::cli__message_emit(cond)
   15.             ├─base::withRestarts(...)
   16.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   17.             │   └─base (local) doWithOneRestart(return(expr), restart)
   18.             └─cli:::cli__default_handler(cond)
   19.               └─cli:::cli_server_default(msg)
   20.                 └─cli:::cli_server_default_safe(msg)
   21.                   ├─base::do.call(app[[type]], msg$args)
   22.                   └─cli (local) `<fn>`(...)
   23.                     └─cli:::clii_alert(app, "alert-warning", text, id, class, wrap)
   24.                       └─app$xtext(text)
   25.                         └─cli:::clii__xtext(...)
   26.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                             └─base::lapply(pars, ansi_trimws)
   28.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-html.R:54:5): to_html() output in parent directory ──────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-html.R:54:4
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...)
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─renderthis::to_html("slides/slides.Rmd", "slides.html")
   10.   └─renderthis:::build_html_rmd_args(...)
   11.     └─renderthis:::self_contained_is_required(input, output_file)
   12.       └─cli::cli_alert_warning(...)
   13.         └─cli:::cli__message(...)
   14.           └─cli:::cli__message_emit(cond)
   15.             ├─base::withRestarts(...)
   16.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   17.             │   └─base (local) doWithOneRestart(return(expr), restart)
   18.             └─cli:::cli__default_handler(cond)
   19.               └─cli:::cli_server_default(msg)
   20.                 └─cli:::cli_server_default_safe(msg)
   21.                   ├─base::do.call(app[[type]], msg$args)
   22.                   └─cli (local) `<fn>`(...)
   23.                     └─cli:::clii_alert(app, "alert-warning", text, id, class, wrap)
   24.                       └─app$xtext(text)
   25.                         └─cli:::clii__xtext(...)
   26.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                             └─base::lapply(pars, ansi_trimws)
   28.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-html.R:77:5): to_html() output in totally different directory ───
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-html.R:77:4
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...)
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─renderthis::to_html(...)
   10.   └─renderthis:::build_html_rmd_args(...)
   11.     └─renderthis:::self_contained_is_required(input, output_file)
   12.       └─cli::cli_alert_warning(...)
   13.         └─cli:::cli__message(...)
   14.           └─cli:::cli__message_emit(cond)
   15.             ├─base::withRestarts(...)
   16.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   17.             │   └─base (local) doWithOneRestart(return(expr), restart)
   18.             └─cli:::cli__default_handler(cond)
   19.               └─cli:::cli_server_default(msg)
   20.                 └─cli:::cli_server_default_safe(msg)
   21.                   ├─base::do.call(app[[type]], msg$args)
   22.                   └─cli (local) `<fn>`(...)
   23.                     └─cli:::clii_alert(app, "alert-warning", text, id, class, wrap)
   24.                       └─app$xtext(text)
   25.                         └─cli:::clii__xtext(...)
   26.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                             └─base::lapply(pars, ansi_trimws)
   28.                               └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 109 ]
  Error: Test failures
  Execution halted