Running ‘testthat.R’ [2s/2s]
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" = "")
  > 
  > # Check if setup and helper funs have been run.
  > # If in R CMD CHECK, they may not have been run yet.
  > Sys.setenv(PKGNET_REBUILD = identical(Sys.getenv('PKGNET_TEST_LIB'), ''))
  > 
  > # If not yet run, rebuild
  > if (Sys.getenv('PKGNET_REBUILD')){
  +     library(pkgnet)
  +     ## ******************************************************************************************
  +     ## THIS IS THIS SAME CONTENT as setup_setTestEnv.R but neccessary to paste here due to
  +     ## travis checks.
  +     ## ******************************************************************************************
  + 
  +     # [DEBUG] write("PKGNET_REBUILD triggered", file = "~/thing.txt", append = TRUE)
  + 
  +     # record original libpaths in order to reset later.
  +     # This should be unnecessary since tests are conducted within a seperate enviornment.
  +     # It's done out of an abundance of caution.
  +     origLibPaths <- .libPaths()
  + 
  +     # Set the pkgnet library for testing to a temp directory
  +     Sys.setenv(PKGNET_TEST_LIB = tempdir())
  + 
  +     # Set the libpaths for testing.
  +     # This has no effect to global libpaths since testing tests are conducted within a
  +     # seperate enviornment.
  +     .libPaths(
  +         new = c(Sys.getenv('PKGNET_TEST_LIB'), origLibPaths)
  +     )
  + 
  +     # Install Fake Packages - For local testing if not already installed
  +     pkgnet:::.BuildTestLib(
  +         targetLibPath = Sys.getenv('PKGNET_TEST_LIB')
  +     )
  + 
  +     # [DEBUG] write(paste0("PKGNET_TEST_LIB: ", Sys.getenv('PKGNET_TEST_LIB')), file = "~/thing.txt", append = TRUE)
  +     # [DEBUG] write(list.files(Sys.getenv('PKGNET_TEST_LIB'), recursive = TRUE), file = "~/thing.txt", append = TRUE)
  + 
  + 
  + }
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//baseballstats’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//sartre’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//milne’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet’
  Error: ERROR: no packages specified
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//baseballstats’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//sartre’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//milne’
  Warning: invalid package ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet’
  Error: ERROR: no packages specified
  Error in pkgnet:::.BuildTestLib(targetLibPath = Sys.getenv("PKGNET_TEST_LIB")) : 
    Installation of packages in .BuildTestLib failed! (exit code = 1)
  
  In addition: Warning message:
  In system(command = cmdstr, intern = TRUE) :
    running command '"/home/hornik/tmp/R.check/r-devel-clang/Work/build/bin/R" CMD INSTALL -l "/tmp/RtmpZt1rCs" /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//baseballstats /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//sartre /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet//milne /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/pkgnet.Rcheck/00_pkg_src/pkgnet' had status 1
  Execution halted