Running ‘test_file_subs_ext.R’
  Running ‘test_mdtangle.R’
  Running ‘test_mdweave.R’
Running the tests in ‘tests/test_mdtangle.R’ failed.
Complete output:
  > # mdtangle a couple of documents and check if the output is the
  > # same as the corresponding reference documents
  > 
  > library(simplermarkdown)
  > 
  > # Create tempdir
  > dir <- tempdir()
  > dir.create(dir, recursive = TRUE, showWarnings = FALSE)
  > oldwd <- setwd(dir)
  > 
  > # When running tests the environment variable R_TESTS is set. This
  > # causes issues when running a second R instance as mdweave does. Therefore
  > # we unser it.
  > old_env <- Sys.getenv("R_TESTS")
  > Sys.setenv("R_TESTS" = "")
  > 
  > 
  > # =============================================================================
  > message("Checking iris.md")
  Checking iris.md
  > md <- "iris.md"
  > r <- "iris.R"
  > 
  > message("Tangle file")
  Tangle file
  > fn <- system.file(file.path("examples", md), package = "simplermarkdown")
  > mdtangle(fn)
  sh: pandoc:  not found
  Error in file(con, "r") : cannot open the connection
  Calls: mdtangle -> <Anonymous> -> paste -> readLines -> file
  In addition: Warning messages:
  1: In system(cmd) : error in running command
  2: In file(con, "r") :
    cannot open file '/tmp/RtmpQiaG6V/working_dir/RtmpucaGP5/file734ca793c23.json': No such file or directory
  Execution halted
  Warning message:
  In file.remove(tmp_ofn) :
    cannot remove file '/tmp/RtmpQiaG6V/working_dir/RtmpucaGP5/file734ca793c23.json', reason 'No such file or directory'
Running the tests in ‘tests/test_mdweave.R’ failed.
Complete output:
  > # mdweave a couple of documents and check if the output is the
  > # same as the corresponding reference documents
  > 
  > 
  > # We only want to check if the output of mdweave matches the reference if the
  > # pandoc version matches that which generated the reference. Otherwise there
  > # is a large chance that the output does not match
  > pandoc_version <- system("pandoc --version", intern = TRUE)
  sh: pandoc:  not found
  Error in system("pandoc --version", intern = TRUE) : 
    error in running command: 'Illegal seek'
  Execution halted