Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exampletestr)
  > 
  > test_check("exampletestr")
  Package: tempkg
  Title: What the Package Does (one line, title case)
  Version: 0.0.0.9000
  Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre"))
  Description: What the package does (one paragraph).
  Depends: R (>= 3.5.0)
  License: What license is it under?
  Encoding: UTF-8
  LazyData: true
  Writing NAMESPACE
  Writing extract_examples.Rd
  Writing make_test_shell.Rd
  Writing make_tests_shells_file.Rd
  Package: tempkg
  Title: What the Package Does (one line, title case)
  Version: 0.0.0.9000
  Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre"))
  Description: What the package does (one paragraph).
  Depends: R (>= 3.5.0)
  License: What license is it under?
  Encoding: UTF-8
  LazyData: true
  Writing NAMESPACE
  Writing extract_examples.Rd
  Writing make_test_shell.Rd
  Writing make_tests_shells_file.Rd
  Package: tempkg
  Title: What the Package Does (one line, title case)
  Version: 0.0.0.9000
  Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre"))
  Description: What the package does (one paragraph).
  Depends: R (>= 3.5.0)
  License: What license is it under?
  Encoding: UTF-8
  LazyData: true
  Writing NAMESPACE
  Writing extract_examples.Rd
  Writing make_test_shell.Rd
  Writing make_tests_shells_file.Rd
  Writing fx.Rd
  1. Error: make_tests_shells_file works (@test_exemplar.R#151) ------------------
  all connections are in use
  1: expect_equal(make_tests_shells_file("R/exemplar", overwrite = TRUE), readLines(system.file("extdata", 
         "test_exemplar_uncompleted.R", package = "exampletestr"))) at testthat/test_exemplar.R:151
  2: compare(object, expected, ...)
  3: make_tests_shells_file("R/exemplar", overwrite = TRUE)
  4: writeLines(combined, test_file_name)
  5: file(con, "w")
  
  testthat results ================================================================
  OK: 22 SKIPPED: 0 FAILED: 1
  1. Error: make_tests_shells_file works (@test_exemplar.R#151) 
  
  Error: testthat unit tests failed
  Execution halted