Running ‘testthat.R’ [23s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(plumber)
  > 
  > test_check("plumber")
  <simpleError: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).>
  1. Error: Includes work (@test-include.R#28) -----------------------------------
  argument is of length zero
  1: r$route(make_req("GET", "/md"), res) at testthat/test-include.R:28
  2: tryCatch({
         options(warn = 1)
         h <- getHandle("__first__")
         if (!is.null(h)) {
             if (!is.null(h$serializer)) {
                 res$serializer <- h$serializer
             }
             req$args <- c(h$getPathParams(path), req$args)
             return(do.call(h$exec, req$args))
         }
         if (length(self$filters) > 0) {
             for (i in 1:length(self$filters)) {
                 fi <- self$filters[[i]]
                 h <- getHandle(fi$name)
                 if (!is.null(h)) {
                     if (!is.null(h$serializer)) {
                       res$serializer <- h$serializer
                     }
                     req$args <- c(h$getPathParams(path), req$args)
                     return(do.call(h$exec, req$args))
                 }
                 .globals$forwarded <- FALSE
                 fres <- do.call(fi$exec, req$args)
                 if (!.globals$forwarded) {
                     if (!is.null(fi$serializer)) {
                       res$serializer <- fi$serializer
                     }
                     return(fres)
                 }
             }
         }
         h <- getHandle("__no-preempt__")
         if (!is.null(h)) {
             if (!is.null(h$serializer)) {
                 res$serializer <- h$serializer
             }
             req$args <- c(h$getPathParams(path), req$args)
             return(do.call(h$exec, req$args))
         }
         val <- private$notFoundHandler(req = req, res = res)
         return(val)
     }, error = function(e) {
         val <- private$errorHandler(req, res, e)
         return(val)
     }, finally = options(warn = oldWarn))
  3: tryCatchList(expr, classes, parentenv, handlers)
  4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5: value[[3L]](cond)
  6: private$errorHandler(req, res, e)
  
  testthat results ================================================================
  OK: 219 SKIPPED: 0 FAILED: 1
  1. Error: Includes work (@test-include.R#28) 
  
  Error: testthat unit tests failed
  Execution halted