Running ‘testthat.R’ [7s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(qualtRics)
  > 
  > test_check("qualtRics")
  To install your credentials for use in future sessions, run this function with `install = TRUE`.
  Problem items: income
  To install your credentials for use in future sessions, run this function with `install = TRUE`.
  Problem items: invalidkey
  To install your credentials for use in future sessions, run this function with `install = TRUE`.
  
  -- Column specification --------------------------------------------------------
  cols(
    .default = col_double(),
    StartDate = col_datetime(format = ""),
    EndDate = col_datetime(format = ""),
    IPAddress = col_character(),
    RecordedDate = col_datetime(format = ""),
    ResponseId = col_character(),
    RecipientLastName = col_logical(),
    RecipientFirstName = col_logical(),
    RecipientEmail = col_logical(),
    ExternalReference = col_logical(),
    DistributionChannel = col_character(),
    UserLanguage = col_character(),
    Q2 = col_character(),
    `Q2 - Topics` = col_logical()
  )
  i Use `spec()` for the full column specifications.
  
  
  -- Column specification --------------------------------------------------------
  cols(
    V1 = col_character(),
    V2 = col_character(),
    V3 = col_character(),
    V4 = col_logical(),
    V5 = col_logical(),
    V6 = col_character(),
    V7 = col_double(),
    V8 = col_datetime(format = ""),
    V9 = col_datetime(format = ""),
    V10 = col_double(),
    Q1 = col_double(),
    Q2 = col_character(),
    LocationLatitude = col_double(),
    LocationLongitude = col_double(),
    LocationAccuracy = col_double()
  )
  
  [ FAIL 1 | WARN 14 | SKIP 16 | PASS 109 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (16): 'test-all-mailinglists.R:1:1', 'test-all-surveys.R:1:1',
    'test-api-credentials.R:2:3', 'test-api-credentials.R:11:3',
    'test-fetch-distribution-history.R:1:1', 'test-fetch-distributions.R:1:1',
    'test-fetch-mailinglist.R:1:1', 'test-fetch-survey.R:3:3',
    'test-fetch-survey.R:28:3', 'test-fetch-survey.R:59:3',
    'test-fetch-survey.R:83:3', 'test-fetch-survey.R:140:3',
    'test-fetch-survey.R:153:3', 'test-list-distribution-links.R:1:1',
    'test-qualtrics-api-request.R:5:3', 'test-survey-questions.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract-colmap.R:4:5'): extract_colmap() retrieves an appropriate column map generated within read_survey ──
  <vcr_unhandled/rlang_error/error/condition>
  Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "extract_colmap".
  i Use `local_vcr_configure_log()` to get more details.
  i Learn more in `vignette(vcr::debugging)`.
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-extract-colmap.R:3:3
    2. │ └─base::withCallingHandlers(...)
    3. └─qualtRics::fetch_survey(...) at test-extract-colmap.R:4:5
    4.   └─qualtRics:::export_responses_request(...)
    5.     └─qualtRics:::export_responses_init(surveyID = surveyID, body = body)
    6.       └─qualtRics:::qualtrics_api_request(...)
    7.         ├─base::do.call(httr::RETRY, arglist)
    8.         └─httr (local) `<fn>`(...)
    9.           ├─base::tryCatch(request_perform(req, hu$handle$handle), error = function(e) e)
   10.           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   13.           └─httr:::request_perform(req, hu$handle$handle)
   14.             └─httr:::perform_callback("request", req = req)
   15.               └─vcr (local) callback(...)
   16.                 └─RequestHandlerHttr$new(req)$handle()
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 14 | SKIP 16 | PASS 109 ]
  Error: Test failures
  In addition: Warning message:
  In readRenviron("~/.Renviron") :
    file '/home/hornik/.Renviron' cannot be opened for reading
  Execution halted