Running ‘test-all.R’
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > #Modeled after the R6 testing structure: https://github.com/wch/R6/blob/master/tests/testthat.R
  > library(testthat)
  > library(REDCapR)
  > 
  > testthat::test_check("REDCapR")
  ── 1. Error: (unknown) (@test-metadata-read.R#4)  ──────────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-metadata-read.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 2. Error: (unknown) (@test-read-batch-longitudinal.R#4)  ────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 212) at testthat/test-read-batch-longitudinal.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 3. Error: (unknown) (@test-read-batch-simple.R#4)  ──────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-batch-simple.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 4. Error: One Shot: Bad Uri -Not HTTPS (@test-read-errors.R#8)  ─────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-errors.R:8
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 5. Error: One Shot: Bad Uri -wrong address (@test-read-errors.R#30)  ────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-errors.R:30
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 6. Error: Batch: Bad Uri -Not HTTPS (@test-read-errors.R#51)  ───────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-errors.R:51
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 7. Error: Batch: Bad Uri -wrong address (@test-read-errors.R#72)  ───────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-errors.R:72
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 8. Error: (unknown) (@test-read-oneshot.R#4)  ───────────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-read-oneshot.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 9. Error: (unknown) (@test-read-russian.R#4)  ───────────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 268) at testthat/test-read-russian.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 10. Error: (unknown) (@test-variables.R#4)  ─────────────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-variables.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ── 11. Error: (unknown) (@test-version.R#4)  ───────────────────────────────────
  there is no package called 'devtools'
  1: REDCapR::retrieve_credential_local(path_credential = base::file.path(devtools::inst(name = "REDCapR"), 
         "misc/example.credentials"), project_id = 153) at testthat/test-version.R:4
  2: file.exists(path_credential)
  3: base::file.path(devtools::inst(name = "REDCapR"), "misc/example.credentials")
  4: devtools::inst
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 91 SKIPPED: 15 FAILED: 11
  1. Error: (unknown) (@test-metadata-read.R#4) 
  2. Error: (unknown) (@test-read-batch-longitudinal.R#4) 
  3. Error: (unknown) (@test-read-batch-simple.R#4) 
  4. Error: One Shot: Bad Uri -Not HTTPS (@test-read-errors.R#8) 
  5. Error: One Shot: Bad Uri -wrong address (@test-read-errors.R#30) 
  6. Error: Batch: Bad Uri -Not HTTPS (@test-read-errors.R#51) 
  7. Error: Batch: Bad Uri -wrong address (@test-read-errors.R#72) 
  8. Error: (unknown) (@test-read-oneshot.R#4) 
  9. Error: (unknown) (@test-read-russian.R#4) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted