Running ‘testthat.R’ [12s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Note that you would never run this file directly. This is used by tools::testInstallPackages()
  > # and other packages like covr.
  > # To actually run the tests, you need to set the working directory then run
  > # devtools::test('pkgnet')
  > 
  > # This line ensures that R CMD check can run tests.
  > # See https://github.com/hadley/testthat/issues/144
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(pkgnet)
  > 
  > # Install Fake Packages - For local testing if not already installed
  > devtools::install_local(system.file('baseballstats',package="pkgnet"),force=TRUE)
  Installing baseballstats
  '/home/hornik/tmp/R.check/r-release-gcc/Work/build/bin/R' --no-site-file  \
    --no-environ --no-save --no-restore --quiet CMD INSTALL  \
    '/tmp/RtmpDAcUm4/file69612e2232fc/baseballstats'  \
    --library='/tmp/RtmpbWoNxI/RLIBS_76a66fcc301d' --install-tests 
  
  * installing *source* package ‘baseballstats’ ...
  ** R
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (baseballstats)
  > devtools::install_local(system.file('sartre',package="pkgnet"),force=TRUE)
  Installing sartre
  '/home/hornik/tmp/R.check/r-release-gcc/Work/build/bin/R' --no-site-file  \
    --no-environ --no-save --no-restore --quiet CMD INSTALL  \
    '/tmp/RtmpDAcUm4/file69613d067cea/sartre'  \
    --library='/tmp/RtmpbWoNxI/RLIBS_76a66fcc301d' --install-tests 
  
  * installing *source* package ‘sartre’ ...
  ** R
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (sartre)
  > 
  > testthat::test_check('pkgnet')
  
  Attaching package: 'testthat'
  
  The following object is masked from 'package:pkgnet':
  
      SummaryReporter
  
  ── 1. Error: Test that CreatePackageReport Runs (@test-CreatePackageReport.
  cannot open the connection
  1: CreatePackageReport(pkg_name = "baseballstats", report_path = testReportPath) at testthat/test-CreatePackageReport.R:19
  2: .RenderPackageReport(report_path = report_path, pkg_reporters = builtReporters, 
         pkg_name = pkg_name)
  3: rmarkdown::render(system.file(file.path("package_report", "package_report.Rmd"), 
         package = "pkgnet"), output_file = report_path, quiet = TRUE, params = list(reporters = pkg_reporters, 
         pkg_name = pkg_name))
  4: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, encoding = encoding)
  5: writeLines(if (encoding == "") res else native_encode(res, to = encoding), con = output, 
         useBytes = encoding != "")
  6: file(con, "w")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 48 SKIPPED: 0 FAILED: 1
  1. Error: Test that CreatePackageReport Runs (@test-CreatePackageReport.R#19) 
  
  Error: testthat unit tests failed
  Execution halted