Running 'runit.R'
Running the tests in 'tests/runit.R' failed.
Complete output:
  > #!/usr/bin/Rscript --vanilla
  > options("write_to_disk" = FALSE)
  > is_failure <- function(result) {
  +     res <- RUnit::getErrors(result)
  +     names(res) <- tolower(names(res)) # soothe lintr
  +     sum_of_exceptions <- res[["nerr"]] + res[["nfail"]]
  +     fail <- as.logical(sum_of_exceptions)
  +     return(fail)
  + }
  > 
  > if (interactive()) {
  +     pkgload::load_all(path = ".") # needed to use pkgload's shim version of
  +     # base's system.file
  +     unit_dir <- system.file("inst", "runit_tests", package = "rasciidoc")
  + } else {
  +     require("rasciidoc", quietly = TRUE, character.only = TRUE) ||
  +         pkgload::load_all(path = ".") # needed to use pkgload's shim version of
  +     r_call <- commandArgs(trailingOnly = FALSE)
  +     if (any(grepl("--file", r_call))) {
  +         unit_dir <- file.path("inst", "runit_tests")
  +     } else {
  +         unit_dir <- system.file("runit_tests", package = "rasciidoc")
  +     }
  + }
  
  Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of the input file.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  > if (! dir.exists(unit_dir)) {
  +     stop("Can not find RUnit test directory ", unit_dir,
  +          ". Try to (re)install the package first.")
  + }
  > package_suite <- RUnit::defineTestSuite("rasciidoc_unit_test",
  +                                         dirs = unit_dir,
  +                                         testFileRegexp = "^.*\\.[rR]",
  +                                         testFuncRegexp = "^test_+")
  > test_result <- RUnit::runTestSuite(package_suite)
  
  
  Executing test function test_excerption  ... Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ/excerption_file.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ/excerption_file.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
   done successfully.
  
  
  
  Executing test function test_escape_html  ...  done successfully.
  
  
  
  Executing test function test_escape_latex  ...  done successfully.
  
  
  
  Executing test function test_group_src  ...  done successfully.
  
  
  
  Executing test function test_try_parse  ...  done successfully.
  
  
  
  Executing test function test_highlight_source  ...  done successfully.
  
  
  
  Executing test function test_knitr_internals  ...  done successfully.
  
  
  
  Executing test function test_merge_lists  ...  done successfully.
  
  
  
  Executing test function test_adjusting_hooks  ...  done successfully.
  
  
  
  Executing test function test_knit_spin  ...   ordinary text without R code
  
  label: unnamed-chunk-1 (with options) 
  List of 1
   $ code: chr [1:6] "a  <- c(2, 3, 4, 10) # <1>" "value <- 0 # <2>" "for (a_i in a) { # <3>" "    value <- value + a_i  # <4>" ...
  
  label: unnamed-chunk-2 (with options) 
  List of 1
   $ include: logi FALSE
  
    ordinary text without R code
  
  label: unnamed-chunk-3
    ordinary text without R code
  
  label: unnamed-chunk-4 (with options) 
  List of 1
   $ code: chr [1:7] "my_sum <- function(x) {" "    value <- 0" "    for (x_i in x) {" "        value <- value + x_i" ...
  
    ordinary text without R code
  
  label: unnamed-chunk-5
    ordinary text without R code
  
  label: unnamed-chunk-6
    ordinary text without R code
  
  Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\spin.R.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Cloning into '/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/tmp/RtmpGWqkdJ/asciidoc'...
  Updating files:  11% (57/484)
  Updating files:  12% (59/484)
  Updating files:  13% (63/484)
  Updating files:  14% (68/484)
  Updating files:  15% (73/484)
  Updating files:  16% (78/484)
  Updating files:  17% (83/484)
  Updating files:  18% (88/484)
  Updating files:  19% (92/484)
  Updating files:  20% (97/484)
  Updating files:  21% (102/484)
  Updating files:  22% (107/484)
  Updating files:  23% (112/484)
  Updating files:  23% (114/484)
  Updating files:  24% (117/484)
  Updating files:  25% (121/484)
  Updating files:  26% (126/484)
  Updating files:  27% (131/484)
  Updating files:  28% (136/484)
  Updating files:  29% (141/484)
  Updating files:  30% (146/484)
  Updating files:  31% (151/484)
  Updating files:  32% (155/484)
  Updating files:  33% (160/484)
  Updating files:  33% (162/484)
  Updating files:  34% (165/484)
  Updating files:  35% (170/484)
  Updating files:  36% (175/484)
  Updating files:  37% (180/484)
  Updating files:  38% (184/484)
  Updating files:  39% (189/484)
  Updating files:  40% (194/484)
  Updating files:  41% (199/484)
  Updating files:  42% (204/484)
  Updating files:  42% (206/484)
  Updating files:  43% (209/484)
  Updating files:  44% (213/484)
  Updating files:  45% (218/484)
  Updating files:  46% (223/484)
  Updating files:  47% (228/484)
  Updating files:  48% (233/484)
  Updating files:  49% (238/484)
  Updating files:  50% (242/484)
  Updating files:  51% (247/484)
  Updating files:  52% (252/484)
  Updating files:  53% (257/484)
  Updating files:  53% (258/484)
  Updating files:  54% (262/484)
  Updating files:  55% (267/484)
  Updating files:  56% (272/484)
  Updating files:  57% (276/484)
  Updating files:  58% (281/484)
  Updating files:  59% (286/484)
  Updating files:  60% (291/484)
  Updating files:  61% (296/484)
  Updating files:  62% (301/484)
  Updating files:  63% (305/484)
  Updating files:  64% (310/484)
  Updating files:  65% (315/484)
  Updating files:  66% (320/484)
  Updating files:  67% (325/484)
  Updating files:  68% (330/484)
  Updating files:  69% (334/484)
  Updating files:  70% (339/484)
  Updating files:  71% (344/484)
  Updating files:  72% (349/484)
  Updating files:  73% (354/484)
  Updating files:  74% (359/484)
  Updating files:  75% (363/484)
  Updating files:  75% (366/484)
  Updating files:  76% (368/484)
  Updating files:  77% (373/484)
  Updating files:  78% (378/484)
  Updating files:  79% (383/484)
  Updating files:  80% (388/484)
  Updating files:  81% (393/484)
  Updating files:  82% (397/484)
  Updating files:  83% (402/484)
  Updating files:  84% (407/484)
  Updating files:  85% (412/484)
  Updating files:  86% (417/484)
  Updating files:  87% (422/484)
  Updating files:  88% (426/484)
  Updating files:  89% (431/484)
  Updating files:  90% (436/484)
  Updating files:  91% (441/484)
  Updating files:  92% (446/484)
  Updating files:  93% (451/484)
  Updating files:  94% (455/484)
  Updating files:  95% (460/484)
  Updating files:  96% (465/484)
  Updating files:  97% (470/484)
  Updating files:  98% (475/484)
  Updating files:  99% (480/484)
  Updating files: 100% (484/484)
  Updating files: 100% (484/484), done.
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Timing stopped at: 2.31 0.73 18.36
  Error in RUnit::checkTrue(status) : Test not TRUE
  
   done successfully.
  
  
  
  Executing test function test_rasciidoc_simple  ... Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\file72c020a55a97/simple.asciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\file72c020a55a97/simple.asciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Timing stopped at: 0 0.1 0.57
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  In addition: Warning message:
  In normalizePath(path.expand(path), winslash, mustWork) :
    path[1]="C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ/simple.asciidoc": The system cannot find the file specified
   done successfully.
  
  
  
  Executing test function test_render_simple  ... Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\files\simple.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  
  
  processing file: C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\files\simple.Rasciidoc
    ordinary text without R code
  
  label: unnamed-chunk-1
  output file: C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ/simple.asciidoc
  
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Timing stopped at: 0.05 0.07 0.34
  Error in RUnit::checkTrue(status) : Test not TRUE
  
   done successfully.
  
  
  
  Executing test function test_render_slides  ... FIXME: need coverage for slides?
  Due to the CRAN policy of not writing "anywhere else on the file system apart from the R session's temporary directory" we work on a temporary copy of C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\files\fake.Radoc.
  Thus all internal sourcing and internal links will be broken and any output is written to C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ. Set the option "write_to_disk" to TRUE (using
  	options("write_to_disk" = TRUE)
  ) to bypass this. You may want to include the above line into your ~/.Rprofile.
  
  
  processing file: C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ\files\fake.Radoc
    ordinary text without R code
  
  output file: C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\rasciidoc\tmp\RtmpGWqkdJ/fake.adoc
  
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `asciidoc`. Please install first (http://www.asciidoc.org).
  Can't find program `source-highlight`. Please install first (http://www.gnu.org/software/src-highlite/). 
  Timing stopped at: 0.02 0.04 0.3
  Error in RUnit::checkTrue(status) : Test not TRUE
  
   done successfully.
  
  
  
  Executing test function test_exception  ... Error in eval(expr, envir = parent.frame()) : Hello, error!
   done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "")
  RUNIT TEST PROTOCOL -- Tue Aug 17 06:44:02 2021 
  *********************************************** 
  Number of test functions: 14 
  Number of errors: 0 
  Number of failures: 4 
  
   
  1 Test Suite : 
  rasciidoc_unit_test - 14 test functions, 0 errors, 4 failures
  FAILURE in test_knit_spin: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_rasciidoc_simple: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_render_simple: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_render_slides: Error in RUnit::checkTrue(status) : Test not TRUE
  
  
  
  
  Details 
  *************************** 
  Test Suite: rasciidoc_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^.*\.[rR] 
  Involved directory: 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests 
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-extraction.R 
  test_excerption: (2 checks) ... OK (0.07 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-highr_internals.R 
  test_escape_html: (1 checks) ... OK (0 seconds)
  test_escape_latex: (1 checks) ... OK (0 seconds)
  test_group_src: (3 checks) ... OK (0.02 seconds)
  test_try_parse: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-knitr_internals_mod.R 
  test_highlight_source: (0 checks) ... OK (0 seconds)
  test_knitr_internals: (3 checks) ... OK (0 seconds)
  test_merge_lists: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-render.R 
  test_adjusting_hooks: (11 checks) ... OK (0.08 seconds)
  test_knit_spin: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_rasciidoc_simple: FAILURE !! (check number 2)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_render_simple: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_render_slides: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-throw.R 
  test_exception: (1 checks) ... OK (0 seconds)
  > if (is_failure(test_result)) {
  +     RUnit::printTextProtocol(test_result, showDetails = TRUE)
  +     stop("RUnit failed.")
  + }
  RUNIT TEST PROTOCOL -- Tue Aug 17 06:44:02 2021 
  *********************************************** 
  Number of test functions: 14 
  Number of errors: 0 
  Number of failures: 4 
  
   
  1 Test Suite : 
  rasciidoc_unit_test - 14 test functions, 0 errors, 4 failures
  FAILURE in test_knit_spin: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_rasciidoc_simple: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_render_simple: Error in RUnit::checkTrue(status) : Test not TRUE
  
  FAILURE in test_render_slides: Error in RUnit::checkTrue(status) : Test not TRUE
  
  
  
  
  Details 
  *************************** 
  Test Suite: rasciidoc_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^.*\.[rR] 
  Involved directory: 
  C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests 
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-extraction.R 
  test_excerption: (2 checks) ... OK (0.07 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-highr_internals.R 
  test_escape_html: (1 checks) ... OK (0 seconds)
  test_escape_latex: (1 checks) ... OK (0 seconds)
  test_group_src: (3 checks) ... OK (0.02 seconds)
  test_try_parse: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-knitr_internals_mod.R 
  test_highlight_source: (0 checks) ... OK (0 seconds)
  test_knitr_internals: (3 checks) ... OK (0 seconds)
  test_merge_lists: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-render.R 
  test_adjusting_hooks: (11 checks) ... OK (0.08 seconds)
  test_knit_spin: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_rasciidoc_simple: FAILURE !! (check number 2)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_render_simple: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  test_render_slides: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  --------------------------- 
  Test file: C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/rasciidoc/rasciidoc.Rcheck/rasciidoc/runit_tests/runit-throw.R 
  test_exception: (1 checks) ... OK (0 seconds)
  Error: RUnit failed.
  Execution halted