Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright (C) 2019 LINE Corporation
  > #
  > # conflr is free software; you can redistribute it and/or modify it under the
  > # terms of the GNU General Public License as published by the Free Software
  > # Foundation, version 3.
  > #
  > # conflr is distributed in the hope that it will be useful, but WITHOUT ANY
  > # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  > # A PARTICULAR PURPOSE. See <http://www.gnu.org/licenses/> for more details.
  > 
  > library(testthat)
  > library(conflr)
  > 
  > test_check("conflr")
  ── 1. Error: embed_images() works for non-ASCII dir (@test-embed-images.R#52)  ─
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr:::do_confl_create_post_from_Rmd(...)
   5. conflr::confl_create_post_from_Rmd(...)
   6. rmarkdown::render(...)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 2. Error: confluence_settings can be set from front-matter (@test-front-matte
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_all_defaults)
   5. conflr::confl_create_post_from_Rmd(...)
   6. rmarkdown::render(...)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 3. Error: confluence_settings$title is prior to title (@test-front-matter.R#9
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_two_titles)
   5. conflr::confl_create_post_from_Rmd(...)
   6. rmarkdown::render(...)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 4. Error: confluence_settings can be specified partially (@test-front-matter.
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_some_settings)
   5. conflr::confl_create_post_from_Rmd(...)
   6. rmarkdown::render(...)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 5. Error: supported_syntax_highlighting can be set via option (@test-front-ma
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. withr::with_options(...)
   3. conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_with_some_settings)
   7. conflr::confl_create_post_from_Rmd(...)
   8. rmarkdown::render(...)
   9. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 6. Error: confluence_settings raise an error when any of mandatory parameters
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr:::do_confl_create_post_from_Rmd(...)
   5. conflr::confl_create_post_from_Rmd(...)
   6. rmarkdown::render(...)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 7. Error: confluence_settings are accepted for backward-compatibility (@test-
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
    1. testthat::expect_warning(...)
    6. conflr:::do_confl_create_post_from_Rmd(confl_upload_mock, Rmd_deprecated)
   10. conflr::confl_create_post_from_Rmd(...)
   11. rmarkdown::render(...)
   12. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 8. Failure: confluence_document() stops early (@test-invalid-credential.R#24)
  `with_mock(...)` threw an error with unexpected message.
  Expected match: "Invalid credentials!"
  Actual message: "pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available)."
  Backtrace:
   1. conflr::confl_create_post_from_Rmd(tmp, interactive = FALSE)
   2. rmarkdown::render(...)
   3. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 9. Failure: rmarkdown::render() works when no space_key  ────────────────────
  `rmarkdown::render(tmp)` threw an error with unexpected class.
  Expected class: success
  Actual class:   simpleError/error/condition
  Message:        pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. testthat::expect_error(rmarkdown::render(tmp), class = "success")
   6. rmarkdown::render(tmp)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 10. Failure: rmarkdown::render() aborts when no space_key  ──────────────────
  `rmarkdown::render(tmp)` threw an error with unexpected message.
  Expected match: "Please provide `space_key`!"
  Actual message: "pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available)."
  Backtrace:
   1. testthat::expect_error(rmarkdown::render(tmp), "Please provide `space_key`!")
   6. rmarkdown::render(tmp)
   7. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 11. Error: TOC is added when set via argument  ──────────────────────────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr::confl_create_post_from_Rmd(...)
   2. rmarkdown::render(...)
   3. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ── 12. Error: TOC is added when set via front-matter  ──────────────────────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  Backtrace:
   1. conflr::confl_create_post_from_Rmd(...)
   2. rmarkdown::render(...)
   3. rmarkdown::pandoc_available(required_pandoc, error = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 96 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 12 ]
  1. Error: embed_images() works for non-ASCII dir (@test-embed-images.R#52) 
  2. Error: confluence_settings can be set from front-matter (@test-front-matter.R#38) 
  3. Error: confluence_settings$title is prior to title (@test-front-matter.R#92) 
  4. Error: confluence_settings can be specified partially (@test-front-matter.R#135) 
  5. Error: supported_syntax_highlighting can be set via option (@test-front-matter.R#149) 
  6. Error: confluence_settings raise an error when any of mandatory parameters are missing (@test-front-matter.R#167) 
  7. Error: confluence_settings are accepted for backward-compatibility (@test-front-matter.R#192) 
  8. Failure: confluence_document() stops early (@test-invalid-credential.R#24) 
  9. Failure: rmarkdown::render() works when no space_key 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted