Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > 
  > test_check('Gmisc')
  Loading required package: Gmisc
  Loading required package: Rcpp
  Loading required package: htmlTable
    ordinary text without R code
  
  label: htmlTable (with options) 
  List of 3
   $ results: chr "asis"
   $ echo   : logi FALSE
   $ message: logi FALSE
  
    ordinary text without R code
  
  label: Basic_graph
    ordinary text without R code
  
  label: Height_width_caption (with options) 
  List of 3
   $ fig.width : num 3
   $ fig.height: num 3
   $ fig.cap   : chr "Test: Height, width, and caption"
  
    ordinary text without R code
  
  label: Height_width_caption_dpi (with options) 
  List of 4
   $ fig.width : num 3
   $ fig.height: num 3
   $ dpi       : num 300
   $ fig.cap   : chr "Test: Height, width, caption, and dpi"
  
    ordinary text without R code
  
  label: Height_width_caption_dpi_out.height_out.width (with options) 
  List of 6
   $ out.height: num 288
   $ out.width : num 288
   $ fig.width : num 3
   $ fig.height: num 3
   $ dpi       : num 300
   $ fig.cap   : chr "Test: Height, width, caption, dpi, out.height, out.width"
  
    ordinary text without R code
  
  label: Highlighting (with options) 
  List of 1
   $ echo: logi TRUE
  
    ordinary text without R code
  
  ── 1. Error: (unknown) (@test-fig_caption.R#6)  ───────────────────────────
  cannot open the connection
  1: rmarkdown::render(fn, output_file = file.path(td, "tmp.html")) at testthat/test-fig_caption.R:6
  2: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, encoding = encoding)
  3: writeLines(if (encoding == "") res else native_encode(res, to = encoding), con = output, 
         useBytes = encoding != "")
  4: file(con, "w")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 313 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test-fig_caption.R#6) 
  
  Error: testthat unit tests failed
  Execution halted