Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(qualtRics)
  > 
  > test_check("qualtRics")
  [ FAIL 14 | WARN 0 | SKIP 7 | PASS 91 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (7)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-all-mailinglists.R:5'): all_mailinglists returns a tbl_df with expected column names and types ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiZWxlbWVudHMiOlt
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-all-mailinglists.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::all_mailinglists() at test-all-mailinglists.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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-all-surveys.R:5'): all_surveys() sends the proper request to Qualtrics ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiZWxlbWVudHMiOlt
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-all-surveys.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::all_surveys() at test-all-surveys.R:6:4
    4.   └─qualtRics:::qualtrics_api_request("GET", surveys_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-column_map.R:5'): column_map() retrieves survey column mapping ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl81Qkp
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-column_map.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::column_map("SV_5BJRo2RGHajIlOB") at test-column_map.R:6:4
    4.   └─qualtRics:::qualtrics_api_request("GET", survey_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-extract-colmap.R:5'): extract_colmap() retrieves an appropriate column map generated within read_survey ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsicHJvZ3Jlc3NJZCI
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-extract-colmap.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_survey(...) at test-extract-colmap.R:6:4
    4.   └─qualtRics:::qualtrics_api_request("POST", url = fetch_url, body = raw_payload)
    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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-description.R:5'): fetch_description() retrieves an appropriate survey description ──
  Error: lexical error: invalid char in json text.
                                         eyJtZXRhIjp7Imh0dHBTdGF0dXMiOiI
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-fetch-description.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_description("SV_6s93xhVtm1e4j3v") at test-fetch-description.R:6:4
    4.   └─qualtRics:::qualtrics_api_request("GET", description_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-description.R:25'): fetch_description() with elements set works ──
  Error: lexical error: invalid char in json text.
                                         eyJtZXRhIjp7Imh0dHBTdGF0dXMiOiI
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-fetch-description.R:25:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_description(...) at test-fetch-description.R:26:4
    4.   └─qualtRics:::qualtrics_api_request("GET", description_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-description.R:38'): fetch_description() with legacy = TRUE reverts to metadata() ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl82czk
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-fetch-description.R:38:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_description("SV_6s93xhVtm1e4j3v", legacy = TRUE) at test-fetch-description.R:39:4
    4.   └─qualtRics::metadata(surveyID = surveyID, get = elements, ...)
    5.     └─qualtRics:::qualtrics_api_request("GET", survey_url)
    6.       └─qualtRics:::qualtrics_response_codes(res)
    7.         └─httr::content(res)
    8.           └─httr:::parse_auto(raw, type, encoding, ...)
    9.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   10.               └─jsonlite::fromJSON(...)
   11.                 └─jsonlite:::parse_and_simplify(...)
   12.                   └─jsonlite:::parseJSON(txt, bigint_as_char)
   13.                     └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-description.R:54'): setting elements works with legacy = TRUE  ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl82czk
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-fetch-description.R:54:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_description(...) at test-fetch-description.R:55:4
    4.   └─qualtRics::metadata(surveyID = surveyID, get = elements, ...)
    5.     └─qualtRics:::qualtrics_api_request("GET", survey_url)
    6.       └─qualtRics:::qualtrics_response_codes(res)
    7.         └─httr::content(res)
    8.           └─httr:::parse_auto(raw, type, encoding, ...)
    9.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   10.               └─jsonlite::fromJSON(...)
   11.                 └─jsonlite:::parse_and_simplify(...)
   12.                   └─jsonlite:::parseJSON(txt, bigint_as_char)
   13.                     └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-description.R:90'): passing a list to elements when legacy = TRUE succeeds with message  ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl82czk
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-fetch-description.R:90:1
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─vcr::use_cassette(...)
    7. │ └─cassette$call_block(...)
    8. └─qualtRics::fetch_description(...) at test-fetch-description.R:92:5
    9.   └─qualtRics::metadata(surveyID = surveyID, get = elements, ...)
   10.     └─qualtRics:::qualtrics_api_request("GET", survey_url)
   11.       └─qualtRics:::qualtrics_response_codes(res)
   12.         └─httr::content(res)
   13.           └─httr:::parse_auto(raw, type, encoding, ...)
   14.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   15.               └─jsonlite::fromJSON(...)
   16.                 └─jsonlite:::parse_and_simplify(...)
   17.                   └─jsonlite:::parseJSON(txt, bigint_as_char)
   18.                     └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-fetch-mailinglist.R:5'): fetch_mailinglist returns a tbl_df with expected column names and types ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiZWxlbWVudHMiOlt
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-fetch-mailinglist.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::fetch_mailinglist("ML_6xLATuSWeOcGWyh") at test-fetch-mailinglist.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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-metadata.R:23'): metadata() should return metadata + questions + responsecounts ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl8zZ2J
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-metadata.R:23:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP") at test-metadata.R:24:4
    4.   └─qualtRics:::qualtrics_api_request("GET", survey_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-metadata.R:37'): metadata() returns flow if specified in new way (char vec) ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl8zZ2J
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-metadata.R:37:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP", get = "flow") at test-metadata.R:38:4
    4.   └─qualtRics:::qualtrics_api_request("GET", survey_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-metadata.R:50'): metadata() ADDS flow if specified in old way (logical list) ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl8zZ2J
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-metadata.R:50:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP", get = list(flow = TRUE)) at test-metadata.R:51:4
    4.   └─qualtRics:::qualtrics_api_request("GET", survey_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-survey-questions.R:5'): survey_questions() makes a request with expected structure, and parses response ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHQiOnsiaWQiOiJTVl8zZ2J
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-survey-questions.R:5:2
    2. │ └─cassette$call_block(...)
    3. └─qualtRics::survey_questions("SV_3gbwq8aJgqPwQDP") at test-survey-questions.R:6:4
    4.   └─qualtRics:::qualtrics_api_request("GET", surveys_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(...)
   10.               └─jsonlite:::parse_and_simplify(...)
   11.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   12.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 14 | WARN 0 | SKIP 7 | PASS 91 ]
  Error: Test failures
  Execution halted