Running ‘testthat.R’ [3s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > if (!requireNamespace('vcr')) {
  +     "Skipping tests as the vcr webmockr package is integral to testing yet unavailable."
  + } else {
  +     test_check("magmaR")
  + }
  Loading required namespace: vcr
  Loading required package: magmaR
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 18 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-matrix.R:10:5'): (code run outside of `test_that()`) ───────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-matrix.R:8:1
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveIds(targ, "example", "rna_seq") at test-matrix.R:10:5
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-meta.R:10:9'): retrieveMetadata, same branch ───────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-meta.R:9:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveAttributes(targ, "example", "biospecimen") at test-meta.R:10:9
   4.   └─magmaR::retrieveIds(target, projectName, modelName, ...)
   5.     └─magmaR:::.retrieve(...)
   6.       └─magmaR:::.perform_curl_get(...)
  ── Error ('test-query.R:11:9'): query_list ─────────────────────────────────────
  Error in `.perform_curl_get(fxn = "/query", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-query.R:9:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::query(...) at test-query.R:11:9
   4.   └─magmaR:::.query(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-query.R:29:9'): query_df ───────────────────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-query.R:27:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveIds(targ, "example", "subject") at test-query.R:29:9
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-retrieve.R:10:9'): retrieve & retrieveJSON work with minimal input ──
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-retrieve.R:9:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveJSON(targ, "example", "subject") at test-retrieve.R:10:9
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-retrieve.R:35:9'): retrieve works with targetted input, 1att ───
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-retrieve.R:34:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieve(...) at test-retrieve.R:35:9
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-retrieve.R:50:9'): retrieve works with targetted input, 1rec ───
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-retrieve.R:49:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieve(...) at test-retrieve.R:50:9
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-retrieve.R:65:9'): retrieveJSON can hide templates ─────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-retrieve.R:64:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveJSON(...) at test-retrieve.R:65:9
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-special.R:10:7'): retrieveTemplate ─────────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-special.R:9:3
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveTemplate(targ, "example") at test-special.R:10:7
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-special.R:17:7'): retrieveModels ───────────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-special.R:16:3
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveModels(targ, "example") at test-special.R:17:7
   4.   └─magmaR::retrieveTemplate(target, projectName)
   5.     └─magmaR:::.retrieve(...)
   6.       └─magmaR:::.perform_curl_get(...)
  ── Error ('test-special.R:24:7'): retrieveIds ──────────────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-special.R:23:3
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveIds(targ, "example", "subject") at test-special.R:24:7
   4.   └─magmaR:::.retrieve(...)
   5.     └─magmaR:::.perform_curl_get(...)
  ── Error ('test-special.R:31:7'): retrieveAttributes ───────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-special.R:30:3
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveAttributes(targ, "example", "subject") at test-special.R:31:7
   4.   └─magmaR::retrieveIds(target, projectName, modelName, ...)
   5.     └─magmaR:::.retrieve(...)
   6.       └─magmaR:::.perform_curl_get(...)
  ── Error ('test-special.R:38:9'): retrieveParentName ───────────────────────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-special.R:37:5
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveParentName(targ, "example", "demographic") at test-special.R:38:9
   4.   └─magmaR::retrieveTemplate(target, projectName)
   5.     └─magmaR:::.retrieve(...)
   6.       └─magmaR:::.perform_curl_get(...)
  ── Error ('test-update.R:12:5'): (code run outside of `test_that()`) ───────────
  Error in `.perform_curl_get(fxn = "/retrieve", target, requestBody, parse = TRUE, 
      verbose = verbose)`: You are unauthorized. Update your 'token' input with 'magmaRset()', then retry.
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-update.R:11:1
   2. │ └─cassette$call_block(...)
   3. └─magmaR::retrieveMatrix(targ, "example", "rna_seq", "all", "gene_counts") at test-update.R:12:5
   4.   └─magmaR::retrieveIds(target, projectName, modelName)
   5.     └─magmaR:::.retrieve(...)
   6.       └─magmaR:::.perform_curl_get(...)
  
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 18 ]
  Error: Test failures
  Execution halted