Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(edwards97)
  > 
  > test_check("edwards97")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 76 ]
  
  == Failed tests ================================================================
  -- Error (test-fit.R:16:3): edwards_fit_optim works ----------------------------
  Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1", 
      x, perl = TRUE)`: input string 1 is invalid UTF-8
  Backtrace:
      x
   1. \-testthat::expect_output(expect_identical(print(fit), fit), "<edwards_fit_optim>") at test-fit.R:16:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
   4.       +-base::paste0(...)
   5.       \-testthat escape(encodeString(act$val))
   6.         \-base::gsub(...)
  -- Error (test-fit.R:38:3): edwards_fit_coefs() works with data ----------------
  Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1", 
      x, perl = TRUE)`: input string 1 is invalid UTF-8
  Backtrace:
      x
   1. \-testthat::expect_output(expect_identical(print(fit), fit), "<edwards_fit_coefs>") at test-fit.R:38:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
   4.       +-base::paste0(...)
   5.       \-testthat escape(encodeString(act$val))
   6.         \-base::gsub(...)
  -- Error (test-fit.R:51:3): edwards_fit_coefs() works without data -------------
  Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1", 
      x, perl = TRUE)`: input string 1 is invalid UTF-8
  Backtrace:
      x
   1. \-testthat::expect_output(expect_identical(print(fit), fit), "<edwards_fit_coefs>") at test-fit.R:51:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
   4.       +-base::paste0(...)
   5.       \-testthat escape(encodeString(act$val))
   6.         \-base::gsub(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 76 ]
  Error: Test failures
  Execution halted