Running ‘testthat.R’ [24s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgdown)
  > 
  > test_check("pkgdown")
  sh: +RTS:  not found
  ── 1. Error: github links are added to news items (@test-build-news.R#6)  ──────
  pandoc document conversion failed with error 127
  1: data_news(pkg) at testthat/test-build-news.R:6
  2: markdown(path(pkg$src_path, "NEWS.md"))
  3: rmarkdown::pandoc_convert(input = path, output = tmp, from = from, to = "html", options = purrr::compact(c(if (!rmarkdown::pandoc_available("2.0")) "--smart", 
         if (rmarkdown::pandoc_available("2.0")) c("-t", "html4"), "--indented-code-classes=R", 
         "--section-divs", ...)))
  4: stop("pandoc document conversion failed with error ", result, call. = FALSE)
  
  ── 2. Error: github links are added to news items (@test-build-news.R#6)  ──────
  [ENOENT] Failed to remove '/tmp/RtmpEIayBT/file5adb122f36ba.html': no such file or directory
  1: data_news(pkg) at testthat/test-build-news.R:6
  2: markdown(path(pkg$src_path, "NEWS.md"))
  3: file_delete(tmp)
  4: unlink_(old[!dirs])
  
  sh: +RTS:  not found
  ── 3. Error: build_news() uses content in NEWS.md (@test-build-news.R#18)  ─────
  pandoc document conversion failed with error 127
  1: expect_output(build_news(pkg)) at testthat/test-build-news.R:18
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_news(pkg)
  11: build_news_single(pkg)
  12: data_news(pkg)
  13: markdown(path(pkg$src_path, "NEWS.md"))
  14: rmarkdown::pandoc_convert(input = path, output = tmp, from = from, to = "html", options = purrr::compact(c(if (!rmarkdown::pandoc_available("2.0")) "--smart", 
         if (rmarkdown::pandoc_available("2.0")) c("-t", "html4"), "--indented-code-classes=R", 
         "--section-divs", ...)))
  15: stop("pandoc document conversion failed with error ", result, call. = FALSE)
  
  ── 4. Error: build_news() uses content in NEWS.md (@test-build-news.R#18)  ─────
  [ENOENT] Failed to remove '/tmp/RtmpEIayBT/file5adb1a9621ed.html': no such file or directory
  1: expect_output(build_news(pkg)) at testthat/test-build-news.R:18
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_news(pkg)
  11: build_news_single(pkg)
  12: data_news(pkg)
  13: markdown(path(pkg$src_path, "NEWS.md"))
  14: file_delete(tmp)
  15: unlink_(old[!dirs])
  
  ── 5. Error: intermediate files cleaned up automatically (@test-build_home.R#29)
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: expect_output(build_home(pkg)) at testthat/test-build_home.R:29
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_home(pkg)
  11: build_home_index(pkg, quiet = quiet)
  12: render_index(pkg, path_rel(src_path, pkg$src_path), data = data, quiet = quiet)
  13: render_rmarkdown(pkg = pkg, input = path, output = "index.html", output_format = format, 
         quiet = quiet, copy_images = FALSE)
  14: callr::r_safe(function(...) rmarkdown::render(...), args = args, show = !quiet, env = c(callr::rcmd_safe_env(), 
         BSTINPUTS = bst_paths(input_path), TEXINPUTS = tex_paths(input_path), BIBINPUTS = bib_paths(input_path)))
  15: get_result(output = out, options)
  
  ── 6. Error: intermediate files cleaned up automatically (@test-build_home.R#37)
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: expect_output(build_home(pkg)) at testthat/test-build_home.R:37
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_home(pkg)
  11: build_home_index(pkg, quiet = quiet)
  12: render_index(pkg, path_rel(src_path, pkg$src_path), data = data, quiet = quiet)
  13: render_rmarkdown(pkg = pkg, input = path, output = "index.html", output_format = format, 
         quiet = quiet, copy_images = FALSE)
  14: callr::r_safe(function(...) rmarkdown::render(...), args = args, show = !quiet, env = c(callr::rcmd_safe_env(), 
         BSTINPUTS = bst_paths(input_path), TEXINPUTS = tex_paths(input_path), BIBINPUTS = bib_paths(input_path)))
  15: get_result(output = out, options)
  
  sh: +RTS:  not found
  ── 7. Failure: build_home fails with empty readme.md (@test-build_home.R#152)  ─
  `build_home(pkg)` threw an error with unexpected message.
  Expected match: "non-empty"
  Actual message: "[ENOENT] Failed to remove '/tmp/RtmpEIayBT/file5adb7b642da2.html': no such file or directory"
  
  ── 8. Error: can override defaults in _pkgdown.yml (@test-figure.R#11)  ────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: expect_output(build_articles(figure)) at testthat/test-figure.R:11
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_articles(figure)
  11: purrr::walk(pkg$vignettes$name, build_article, pkg = pkg, quiet = quiet, lazy = lazy)
  12: .f(.x[[i]], ...)
  13: render_rmarkdown(pkg, input = input, output = output_file, output_format = format, 
         output_options = options, quiet = quiet)
  14: callr::r_safe(function(...) rmarkdown::render(...), args = args, show = !quiet, env = c(callr::rcmd_safe_env(), 
         BSTINPUTS = bst_paths(input_path), TEXINPUTS = tex_paths(input_path), BIBINPUTS = bib_paths(input_path)))
  15: get_result(output = out, options)
  
  ── 9. Failure: can link to remote articles (@test-href.R#99)  ──────────────────
  href_expr_(vignette("highlight", "pkgdown")) not equal to "http://pkgdown.r-lib.org/articles/test/highlight.html".
  1/1 mismatches
  x[1]: NA
  y[1]: "http://pkgdown.r-lib.org/articles/test/highlight.html"
  
  sh: +RTS:  not found
  ── 10. Error: extra.css and extra.js copied and linked (@test-init.R#12)  ──────
  pandoc document conversion failed with error 127
  1: expect_output(build_home(pkg)) at testthat/test-init.R:12
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_home(pkg)
  11: build_home_index(pkg, quiet = quiet)
  12: markdown(src_path)
  13: rmarkdown::pandoc_convert(input = path, output = tmp, from = from, to = "html", options = purrr::compact(c(if (!rmarkdown::pandoc_available("2.0")) "--smart", 
         if (rmarkdown::pandoc_available("2.0")) c("-t", "html4"), "--indented-code-classes=R", 
         "--section-divs", ...)))
  14: stop("pandoc document conversion failed with error ", result, call. = FALSE)
  
  ── 11. Error: extra.css and extra.js copied and linked (@test-init.R#12)  ──────
  [ENOENT] Failed to remove '/tmp/RtmpEIayBT/file5adb14f5a18.html': no such file or directory
  1: expect_output(build_home(pkg)) at testthat/test-init.R:12
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: build_home(pkg)
  11: build_home_index(pkg, quiet = quiet)
  12: markdown(src_path)
  13: file_delete(tmp)
  14: unlink_(old[!dirs])
  
  ── 12. Error: (unknown) (@test-open-graph.R#5)  ────────────────────────────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: setup(expect_output(build_site(pkg))) at testthat/test-open-graph.R:5
  2: eval_tidy(enquo(code), env = env)
  3: expect_output(build_site(pkg))
  4: quasi_capture(enquo(object), capture_output, label = label)
  5: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  6: capture_output_lines(code, print, width = width)
  7: eval_with_output(code, print = print, width = width)
  8: withr::with_output_sink(temp, withVisible(code))
  9: force(code)
  10: withVisible(code)
  11: eval_bare(get_expr(quo), get_env(quo))
  12: build_site(pkg)
  13: build_articles(pkg, lazy = lazy, override = override, preview = FALSE)
  14: purrr::walk(pkg$vignettes$name, build_article, pkg = pkg, quiet = quiet, lazy = lazy)
  15: .f(.x[[i]], ...)
  16: render_rmarkdown(pkg, input = input, output = output_file, output_format = format, 
         output_options = options, quiet = quiet)
  17: callr::r_safe(function(...) rmarkdown::render(...), args = args, show = !quiet, env = c(callr::rcmd_safe_env(), 
         BSTINPUTS = bst_paths(input_path), TEXINPUTS = tex_paths(input_path), BIBINPUTS = bib_paths(input_path)))
  18: get_result(output = out, options)
  
  ── 13. Failure: remote_package_url discovers pkgdown site (@test-remote.R#6)  ──
  remote_package_reference_url("pkgdown") not equal to "http://pkgdown.r-lib.org/reference".
  target is NULL, current is character
  
  ── 14. Error: render_rmarkdown copies image files in subdirectories (@test-rmark
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: expect_output(render_rmarkdown(list(src_path = test_path(), dst_path = tmp), "vignette-with-img.Rmd", 
         "articles/vignette-with-img.html")) at testthat/test-rmarkdown.R:5
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: render_rmarkdown(list(src_path = test_path(), dst_path = tmp), "vignette-with-img.Rmd", 
         "articles/vignette-with-img.html")
  11: callr::r_safe(function(...) rmarkdown::render(...), args = args, show = !quiet, env = c(callr::rcmd_safe_env(), 
         BSTINPUTS = bst_paths(input_path), TEXINPUTS = tex_paths(input_path), BIBINPUTS = bib_paths(input_path)))
  12: get_result(output = out, options)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 199 SKIPPED: 7 FAILED: 14
  1. Error: github links are added to news items (@test-build-news.R#6) 
  2. Error: github links are added to news items (@test-build-news.R#6) 
  3. Error: build_news() uses content in NEWS.md (@test-build-news.R#18) 
  4. Error: build_news() uses content in NEWS.md (@test-build-news.R#18) 
  5. Error: intermediate files cleaned up automatically (@test-build_home.R#29) 
  6. Error: intermediate files cleaned up automatically (@test-build_home.R#37) 
  7. Failure: build_home fails with empty readme.md (@test-build_home.R#152) 
  8. Error: can override defaults in _pkgdown.yml (@test-figure.R#11) 
  9. Failure: can link to remote articles (@test-href.R#99) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted