Running ‘spelling.R’
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gitignore)
  > 
  > test_check("gitignore")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_gi_fetch_templates.R:10:3): gi_fetch_templates inputs ───────────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_invisible(gi_fetch_templates("c")) test_gi_fetch_templates.R:10:2
   2. │ └─base::withVisible(call)
   3. └─gitignore::gi_fetch_templates("c")
   4.   └─gitignore::gi_available_templates()
   5.     └─jsonlite::fromJSON(rawToChar(res$content))
   6.       └─jsonlite:::parse_and_simplify(...)
   7.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test_gi_fetch_templates.R:14:3): gi_fetch_templates case do not matter ──
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_equal(gi_fetch_templates("r"), gi_fetch_templates("R")) test_gi_fetch_templates.R:14:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─gitignore::gi_fetch_templates("r")
   5.   └─gitignore::gi_available_templates()
   6.     └─jsonlite::fromJSON(rawToChar(res$content))
   7.       └─jsonlite:::parse_and_simplify(...)
   8.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   9.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test_gi_fetch_templates.R:30:3): Template can be copied in the clipboard ──
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_invisible(gi_fetch_templates("c")) test_gi_fetch_templates.R:30:2
   2. │ └─base::withVisible(call)
   3. └─gitignore::gi_fetch_templates("c")
   4.   └─gitignore::gi_available_templates()
   5.     └─jsonlite::fromJSON(rawToChar(res$content))
   6.       └─jsonlite:::parse_and_simplify(...)
   7.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test_gi_fetch_templates.R:39:3): A non existing .gitignore file can be created ──
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_invisible(...) test_gi_fetch_templates.R:39:2
   2. │ └─base::withVisible(call)
   3. └─gitignore::gi_fetch_templates(...)
   4.   └─gitignore::gi_available_templates()
   5.     └─jsonlite::fromJSON(rawToChar(res$content))
   6.       └─jsonlite:::parse_and_simplify(...)
   7.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test_gi_write_gitignore.R:5:3): no change in the gitignore file ──────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. └─gitignore::gi_fetch_templates("r") test_gi_write_gitignore.R:5:2
   2.   └─gitignore::gi_available_templates()
   3.     └─jsonlite::fromJSON(rawToChar(res$content))
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test_gi_write_gitignore.R:20:3): .gitignore file can not be found ────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html><!--[if IE 7]><h
                       (right here) ------^
  
  Backtrace:
      █
   1. └─gitignore::gi_fetch_templates("r") test_gi_write_gitignore.R:20:2
   2.   └─gitignore::gi_available_templates()
   3.     └─jsonlite::fromJSON(rawToChar(res$content))
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted