Running ‘testthat.R’ [30s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(reprex)
  > 
  > test_check("reprex")
  1. Error: can't see environment of caller (@test-env.R#5) ----------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(z, show = FALSE) at testthat/test-env.R:5
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  2. Error: reprex doesn't write into environment of caller (@test-env.R#11) -----
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex((z <- "I touched it!"), show = FALSE) at testthat/test-env.R:11
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  3. Error: I understand exactly what I'm putting in reprex env (@test-env.R#22) -
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(ls(all.names = TRUE), show = FALSE) at testthat/test-env.R:22
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  4. Error: reprex: clipboard input works (@test-input.R#12) ---------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: expect_message(ret <- reprex(show = FALSE), exp_msg) at testthat/test-input.R:12
  2: capture_messages(object)
  3: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  4: reprex(show = FALSE)
  5: reprex_(r_file)
  6: stop("\nCannot render this code.\n", rendout)
  
  5. Error: reprex: expression input works (@test-input.R#17) --------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(1:5, show = FALSE)) at testthat/test-input.R:17
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(1:5, show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  6. Error: reprex: character input works (@test-input.R#23) ---------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(input = "1:5\n", show = FALSE)) at testthat/test-input.R:23
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(input = "1:5\n", show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  7. Error: reprex: file input works (@test-input.R#31) --------------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(input = "foo.R", show = FALSE)) at testthat/test-input.R:31
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(input = "foo.R", show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  8. Error: reprex: file input in a subdirectory works (@test-input.R#40) --------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(input = file.path("foo", "foo.R"), show = FALSE)) at testthat/test-input.R:40
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(input = file.path("foo", "foo.R"), show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  9. Error: Circular use is detected before render (@test-input.R#47) ------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(y <- 2, venue = "gh", show = FALSE) at testthat/test-input.R:47
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  10. Error: Leading prompts are removed (@test-input.R#55) ----------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, show = FALSE) at testthat/test-input.R:55
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  11. Error: chunk options can be overridden (@test-knitr-options.R#8) -----------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = src, opts_chunk = list(collapse = FALSE), show = FALSE) at testthat/test-knitr-options.R:8
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  12. Error: `comment` is special (@test-knitr-options.R#25) ---------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = src, comment = "#?#", show = FALSE) at testthat/test-knitr-options.R:25
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  13. Error: expected outfiles are written and messaged, venue = 'gh' (@test-outfiles.R#15) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(1:5, outfile = "foo", show = FALSE)) at testthat/test-outfiles.R:15
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(1:5, outfile = "foo", show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  14. Error: expected outfiles are written and messaged, venue = 'R' (@test-outfiles.R#24) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(1:5, outfile = "foo", show = FALSE, venue = "R")) at testthat/test-outfiles.R:24
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(1:5, outfile = "foo", show = FALSE, venue = "R")
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  15. Error: `.md` extension is stripped from outfile (@test-outfiles.R#37) ------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(1:5, show = FALSE, outfile = "foo.md") at testthat/test-outfiles.R:37
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  16. Error: .R outfile doesn't clobber .R infile (@test-outfiles.R#45) ----------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = "foo.R", show = FALSE, outfile = NA) at testthat/test-outfiles.R:45
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  17. Error: outfiles in a subdirectory works (@test-outfiles.R#52) --------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(1:5, outfile = "foo/foo", show = FALSE)) at testthat/test-outfiles.R:52
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(1:5, outfile = "foo/foo", show = FALSE)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  18. Error: outfiles based on input file (@test-outfiles.R#61) ------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(input = "foo.R", show = FALSE, outfile = NA)) at testthat/test-outfiles.R:61
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(input = "foo.R", show = FALSE, outfile = NA)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  19. Error: outfiles based on tempfile() (@test-outfiles.R#68) ------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: capture_messages(ret <- reprex(input = c("x <- 1:3", "min(x)"), show = FALSE, outfile = NA)) at testthat/test-outfiles.R:68
  2: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  3: reprex(input = c("x <- 1:3", "min(x)"), show = FALSE, outfile = NA)
  4: reprex_(r_file)
  5: stop("\nCannot render this code.\n", rendout)
  
  20. Error: pre-existing foo_reprex.R isn't get clobbered, w/o user's OK (@test-outfiles.R#83) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(min(1L), show = FALSE, outfile = "foo") at testthat/test-outfiles.R:83
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  21. Error: round trip: reprex(..., venue = 'R') --> reprex_clean() (@test-roundtrips.R#12) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, show = FALSE, venue = "R", opts_chunk = list(comment = "#!")) at testthat/test-roundtrips.R:12
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  22. Error: round trip: reprex(..., venue = 'gh') --> reprex_invert() (@test-roundtrips.R#20) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, show = FALSE) at testthat/test-roundtrips.R:20
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  23. Error: round trip: reprex(..., venue = 'so') --> reprex_invert() (@test-roundtrips.R#26) 
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, venue = "so", show = FALSE) at testthat/test-roundtrips.R:26
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  24. Error: session info is omitted / included (@test-session-info.R#9) ---------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex({
         (y <- 1:4)
         mean(y)
     }, show = FALSE) at testthat/test-session-info.R:9
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  25. Error: session info is folded on github (@test-session-info.R#18) ----------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex({
         (y <- 1:4)
         mean(y)
     }, show = FALSE, si = TRUE, venue = "gh") at testthat/test-session-info.R:18
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  26. Error: venue = 'so' works (@test-venues.R#19) ------------------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, venue = "so", show = FALSE) at testthat/test-venues.R:19
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  27. Error: venue = 'R' works (@test-venues.R#35) -------------------------------
  
  Cannot render this code.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: reprex(input = input, venue = "R", show = FALSE) at testthat/test-venues.R:35
  2: reprex_(r_file)
  3: stop("\nCannot render this code.\n", rendout)
  
  testthat results ================================================================
  OK: 25 SKIPPED: 0 FAILED: 27
  1. Error: can't see environment of caller (@test-env.R#5) 
  2. Error: reprex doesn't write into environment of caller (@test-env.R#11) 
  3. Error: I understand exactly what I'm putting in reprex env (@test-env.R#22) 
  4. Error: reprex: clipboard input works (@test-input.R#12) 
  5. Error: reprex: expression input works (@test-input.R#17) 
  6. Error: reprex: character input works (@test-input.R#23) 
  7. Error: reprex: file input works (@test-input.R#31) 
  8. Error: reprex: file input in a subdirectory works (@test-input.R#40) 
  9. Error: Circular use is detected before render (@test-input.R#47) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted