Running ‘test-all.R’ [2s/52s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(cli)
  > library(testthat)
  > old.env <- Sys.getenv("checkpoint.mock.install")
  > Sys.setenv("checkpoint.mock.install" = TRUE)
  > test_check("checkpoint")
  Loading required package: checkpoint
  
  checkpoint: Part of the Reproducible R Toolkit from Microsoft
  https://mran.microsoft.com/documents/rro/reproducibility/
  ── 1. Error: returns a list of dates (@test-2-snapshot-dates.R#8)  ─────────────
  Unable to download from MRAN: cannot open the connection to 'http://mran.microsoft.com/snapshot/'
  1: getValidSnapshots() at testthat/test-2-snapshot-dates.R:8
  2: stop(sprintf("Unable to download from MRAN: %s", text$message))
  
  ── 2. Failure: suggests a reasonable alternative (@test-2-snapshot-dates.R#17)  
  `stopIfInvalidDate("2015-06-05")` did not throw an error.
  
  ── 3. Failure: suggests a reasonable alternative (@test-2-snapshot-dates.R#22)  
  `checkpoint("2015-06-05")` threw an error with unexpected message.
  Expected match: "Snapshot does not exist on MRAN. Try 2015-06-03 or 2015-06-09."
  Actual message: "The .checkpoint folder does not exist. Please try again after creating the folder at /home/hornik/.checkpoint"
  
  ── 4. Error: (unknown) (@test-3-checkpoint.R#202)  ─────────────────────────────
  Unable to download from MRAN: cannot open the connection to 'http://mran.microsoft.com/snapshot/'
  1: getValidSnapshots() at testthat/test-3-checkpoint.R:202
  2: stop(sprintf("Unable to download from MRAN: %s", text$message))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 40 | SKIPPED: 4 | WARNINGS: 1 | FAILED: 4 ]
  1. Error: returns a list of dates (@test-2-snapshot-dates.R#8) 
  2. Failure: suggests a reasonable alternative (@test-2-snapshot-dates.R#17) 
  3. Failure: suggests a reasonable alternative (@test-2-snapshot-dates.R#22) 
  4. Error: (unknown) (@test-3-checkpoint.R#202) 
  
  Error: testthat unit tests failed
  Execution halted