Running ‘testthat.R’ [12s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(renderthis)
  > 
  > test_check("renderthis")
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  profile High, level 6.0, 4:2:0, 8-bit
  264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - 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 'basic.mp4':
    Metadata:
      encoder         : Lavf59.16.100
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 946x710, q=2-31, 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:  3737
  frame P:1     Avg QP:20.12  size:    45
  mb I  I16..4: 96.9%  0.7%  2.4%
  mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
  8x8 transform intra:0.7%
  coded y,uvDC,uvAC intra: 2.2% 2.1% 1.7% inter: 0.0% 0.0% 0.0%
  i16 v,h,dc,p: 96%  1%  2%  0%
  i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 11% 18%  4%  8%  6%  4%  8%  8%
  i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 22% 14%  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:10.03
  Output #0, image2, to '/home/hornik/tmp/scratch/Rtmpmnm6cs/file3182cd787b67fb/image_%6d.png':
    Metadata:
      encoder         : Lavf59.16.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 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - 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 '/home/hornik/tmp/scratch/Rtmpmnm6cs/file3182cd3e5d7715/basic-wide.mp4':
    Metadata:
      encoder         : Lavf59.16.100
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1260x710, q=2-31, 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:  3575
  frame P:1     Avg QP:11.08  size:  6419
  frame B:1     Avg QP:13.72  size:   165
  consecutive B-frames: 50.0% 50.0%  0.0%  0.0%
  mb I  I16..4: 97.7%  0.5%  1.9%
  mb P  I16..4: 13.7%  2.9%  4.2%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:79.1%
  mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  6.1%  0.1%  0.0%  direct: 0.0%  skip:93.8%  L0: 6.2% L1:93.8% BI: 0.0%
  8x8 transform intra:1.7% inter:33.3%
  coded y,uvDC,uvAC intra: 2.6% 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: 84%  2%  4%  1%  2%  2%  1%  3%  2%
  i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 23% 15%  1%  3%  3%  3%  3%  2%
  i8c dc,h,v,p: 96%  3%  1%  0%
  Weighted P-Frames: Y:0.0% UV:0.0%
  kb/s:27.47
  Output #0, image2, to '/home/hornik/tmp/scratch/Rtmpmnm6cs/file3182cd28e0703b/image_%6d.png':
    Metadata:
      encoder         : Lavf59.16.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!
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  `google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
  [ 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