Running 'testthat.R' [9s/13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(qualtRics)
  > 
  > test_check("qualtRics")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 144 ]
  
  == Skipped tests ===============================================================
  * On CRAN (7)
  
  == Failed tests ================================================================
  -- Error ('test-fetch-distributions.R:5'): fetch_distributions returns a tbl_df with expected column names and types --
  Error in `if (is.character(txt) && length(txt) == 1 && nchar(txt, type = "bytes") < 
      2084 && !validate(txt)) {
      if (grepl("^https?://", txt, useBytes = TRUE)) {
          txt <- if (R.version$major < 4) {
              base::url(txt)
          }
          else {
              base::url(txt, headers = c(Accept = "application/json, text/*, */*"))
          }
      }
      else if (file.exists(txt)) {
          txt <- file(txt)
      }
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      x
   1. +-vcr::use_cassette(...) at test-fetch-distributions.R:5:2
   2. | \-cassette$call_block(...)
   3. \-qualtRics::fetch_distributions("SV_0CBoEpG6UVXH4SV") at test-fetch-distributions.R:6:4
   4.   \-qualtRics:::qualtrics_api_request("GET", url = fetch_url)
   5.     \-qualtRics:::qualtrics_response_codes(res)
   6.       \-httr::content(res)
   7.         \-httr:::parse_auto(raw, type, encoding, ...)
   8.           \-httr (local) parser(x = content, type = type, encoding = encoding, ...)
   9.             \-jsonlite::fromJSON(...)
  
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 144 ]
  Error: Test failures
  In addition: Warning message:
  In readRenviron("~/.Renviron") :
    file '/home/hornik/.Renviron' cannot be opened for reading
  Execution halted