Running ‘testthat.R’ [51s/156s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("dataone")
  Loading required package: dataone
  ── 1. Error: CNode getObject() (@test.CNode.R#36)  ─────────────────────────────
  could not find function "skip_on_cra"
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "could not find function \"skip_on_cra\"", quote(skip_on_cra())) at testthat/test.CNode.R:36
  2: eval(code, test_env)
  
  ── 2. Error: CNode getSystemMetadata() (@test.CNode.R#51)  ─────────────────────
  trying to get slot "identifier" from an object of a basic class ("NULL") with no slots
  1: expect_match(sysmeta@identifier, pid) at testthat/test.CNode.R:51
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  
   
   
   
  ── 3. Failure: CNode describeObject() (@test.CNode.R#58)  ──────────────────────
  `res` inherits from `NULL` not `list`.
  
  ── 4. Error: CNode describeObject() (@test.CNode.R#59)  ────────────────────────
  is.character(act$val) is not TRUE
  1: expect_match(res$`content-type`, "text/xml") at testthat/test.CNode.R:59
  2: stopifnot(is.character(act$val))
  
  ── 5. Error: CNode resolve() (@test.CNode.R#81)  ───────────────────────────────
  is.character(act$val) is not TRUE
  1: expect_match(res$id, id) at testthat/test.CNode.R:81
  2: stopifnot(is.character(act$val))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 178 SKIPPED: 39 WARNINGS: 20 FAILED: 5
  1. Error: CNode getObject() (@test.CNode.R#36) 
  2. Error: CNode getSystemMetadata() (@test.CNode.R#51) 
  3. Failure: CNode describeObject() (@test.CNode.R#58) 
  4. Error: CNode describeObject() (@test.CNode.R#59) 
  5. Error: CNode resolve() (@test.CNode.R#81) 
  
  Error: testthat unit tests failed
  Execution halted