Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(repo)
  > 
  > test_check("repo")
  Repo root created.
  Repo created.
  Found repo index in "/tmp/RtmpUhLuso/repo1/R_repo.RDS".
   ID           Dims Size
   repo1 item 1 3    43 B
  1. Failure: Putting unnamed variable worked (@testrepo.R#54) -------------------
  rp1$has("unnamed var") isn't true.
  
  
  2. Error: Putting unnamed variable worked (@testrepo.R#55) ---------------------
  Item not found: unnamed var.
  1: expect_equal(rp1$get("unnamed var"), 99) at testthat/testrepo.R:55
  2: compare(object, expected, ...)
  3: rp1$get("unnamed var")
  4: handleErr("ID_NOT_FOUND", name)
  5: stop(paste0("Item not found: ", lpars))
  
  Repo root created.
  Repo created.
  Found repo index in "/tmp/RtmpUhLuso/repo1/R_repo.RDS".
  Repo root created.
  Repo created.
  Found repo index in "/tmp/RtmpUhLuso/repo1/R_repo.RDS".
  Repo root created.
  Repo created.
  Found repo index in "/tmp/RtmpUhLuso/repo2/R_repo.RDS".
  Writing code:
  
  
  rp <- repo_open(file.path(tempdir(), "temp"), T)
  print(SRCNAME)
  rp$put(SRCNAME, "src", "src desc", "tags", asattach=T)
  
  ## chunk "i1" {
  print("Running chunk 1")
  x <- 1
  rp$put(x, "i1", "item", "tag", src="src")
  ## }
  
  ## chunk "i2"{
  print("Running chunk 2")
  y <- x+1
  rp$put(y, "i2", "item", "tag", src="src", depends="i1")
  ## }
  
  ## chunk "i3"{
  print("Running chunk 3")
  z <- x+y
  rp$put(z, "i3", "item", "tag", src="src", depends=c("i1","i2"))
  ## }
  
  File /tmp/RtmpUhLuso/file5e7c679a3141 created: TRUE
  Repo root created.
  Repo created.
  [1] "/tmp/RtmpUhLuso/file5e7c679a3141"
  [1] "Running chunk 1"
  [1] "Running chunk 2"
  [1] "Running chunk 3"
  Building dependency: i1.
  [1] "Running chunk 1"
  Building dependency: i2.
  [1] "Running chunk 2"
  [1] "Running chunk 3"
  testthat results ================================================================
  OK: 49 SKIPPED: 0 FAILED: 2
  1. Failure: Putting unnamed variable worked (@testrepo.R#54) 
  2. Error: Putting unnamed variable worked (@testrepo.R#55) 
  
  Error: testthat unit tests failed
  Execution halted