Running ‘runit.R’ [7s/9s]
  Running ‘testthat.R’ [1s/1s]
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 /tmp/RtmpnawgCR. 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 /tmp/RtmpnawgCR/excerption_file.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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 /tmp/RtmpnawgCR/excerption_file.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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 /tmp/RtmpnawgCR/spin.R.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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 '/tmp/RtmpnawgCR/asciidoc'...
  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: 4.817 0.397 4.963
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  3: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  4: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  5: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  6: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  7: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  8: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
   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 /tmp/RtmpnawgCR/file7a1b3f82547d/simple.asciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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 /tmp/RtmpnawgCR/file7a1b3f82547d/simple.asciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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.345 0.047 1.376
  Error in RUnit::checkTrue(status) : Test not TRUE
  
  In addition: Warning message:
  In normalizePath(file.path(tempdir(), basename(file_name))) :
    path[1]="/tmp/RtmpnawgCR/simple.asciidoc": No such file or directory
   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 /tmp/RtmpnawgCR/files/simple.Rasciidoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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: /tmp/RtmpnawgCR/files/simple.Rasciidoc
    ordinary text without R code
  
  label: unnamed-chunk-1
  output file: /tmp/RtmpnawgCR/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.203 0.04 0.533
  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 /tmp/RtmpnawgCR/files/fake.Radoc.
  Thus all internal sourcing and internal links will be broken and any output is written to /tmp/RtmpnawgCR. 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: /tmp/RtmpnawgCR/files/fake.Radoc
    ordinary text without R code
  
  output file: /tmp/RtmpnawgCR/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.192 0.02 0.686
  Error in RUnit::checkTrue(status) : Test not TRUE
  
   done successfully.
  
  
  
  Executing test function test_exception  ... Error in eval(expr, envir = parent.frame()) : Hello, error!
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
   done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "")
  RUNIT TEST PROTOCOL -- Tue Oct 19 00:40:24 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: 
  /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests/runit-extraction.R 
  test_excerption: (2 checks) ... OK (0.11 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/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 seconds)
  test_try_parse: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/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: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests/runit-render.R 
  test_adjusting_hooks: (11 checks) ... OK (0.11 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: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/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 Oct 19 00:40:24 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: 
  /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests/runit-extraction.R 
  test_excerption: (2 checks) ... OK (0.11 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/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 seconds)
  test_try_parse: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/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: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests/runit-render.R 
  test_adjusting_hooks: (11 checks) ... OK (0.11 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: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rasciidoc/runit_tests/runit-throw.R 
  test_exception: (1 checks) ... OK (0 seconds)
  Error: RUnit failed.
  Execution halted