* using log directory 'd:/Rcompile/CRANpkg/local/4.4/qualtRics.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'qualtRics/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'qualtRics' version '3.2.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'qualtRics' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [7s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [5s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [8s] 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 re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' To install your credentials for use in future sessions, run this function with `install = TRUE`. Problem items: invalidkey re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' re-record cassettes using 'preserve_exact_body_bytes = TRUE' 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 11 | WARN 2 | SKIP 16 | PASS 64 ] ══ 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 ════════════════════════════════════════════════════════════════ ── Failure ('test-column_map.R:8:3'): column_map() retrieves survey column mapping ── Names of `x` ('qid', 'choice', 'textEntry') don't match 'qname', 'qid', 'choice', 'textEntry' ── Failure ('test-column_map.R:9:3'): column_map() retrieves survey column mapping ── x$qname has type 'NULL', not 'character'. ── Error ('test-extract-colmap.R:4:5'): extract_colmap() retrieves an appropriate column map generated within read_survey ── Error in `export_responses_init(surveyID = surveyID, body = body)`: Qualtrics failed to return a progress ID for your download request * Please re-run your query. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-extract-colmap.R:3:3 2. │ └─cassette$call_block(...) 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. └─rlang::abort(...) ── Error ('test-fetch-description.R:4:5'): fetch_description() retrieves an appropriate survey description ── Error in `bind_rows(metadata, projectinfo)`: Can't combine `..1$name` and `..2$name` . Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-fetch-description.R:3:3 2. │ └─cassette$call_block(...) 3. ├─qualtRics::fetch_description("SV_6s93xhVtm1e4j3v") at test-fetch-description.R:4:5 4. │ └─dplyr::bind_rows(metadata, projectinfo) 5. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 6. └─vctrs (local) ``() 7. └─vctrs::vec_default_ptype2(...) 8. ├─base::withRestarts(...) 9. │ └─base (local) withOneRestart(expr, restarts[[1L]]) 10. │ └─base (local) doWithOneRestart(return(expr), restart) 11. └─vctrs::stop_incompatible_type(...) 12. └─vctrs:::stop_incompatible(...) 13. └─vctrs:::stop_vctrs(...) 14. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call) ── Error ('test-fetch-description.R:24:5'): fetch_description() with elements set works ── Error in `bind_rows(metadata, projectinfo)`: Can't combine `..1$name` and `..2$name` . Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-fetch-description.R:23:3 2. │ └─cassette$call_block(...) 3. ├─qualtRics::fetch_description(...) at test-fetch-description.R:24:5 4. │ └─dplyr::bind_rows(metadata, projectinfo) 5. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env()) 6. └─vctrs (local) ``() 7. └─vctrs::vec_default_ptype2(...) 8. ├─base::withRestarts(...) 9. │ └─base (local) withOneRestart(expr, restarts[[1L]]) 10. │ └─base (local) doWithOneRestart(return(expr), restart) 11. └─vctrs::stop_incompatible_type(...) 12. └─vctrs:::stop_incompatible(...) 13. └─vctrs:::stop_vctrs(...) 14. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call) ── Error ('test-fetch-description.R:37:5'): fetch_description() with legacy = TRUE reverts to metadata() ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-fetch-description.R:36:3 2. │ └─cassette$call_block(...) 3. └─qualtRics::fetch_description("SV_6s93xhVtm1e4j3v", legacy = TRUE) at test-fetch-description.R:37:5 4. └─qualtRics::metadata(surveyID = surveyID, get = elements, ...) 5. └─base::data.frame(...) ── Error ('test-fetch-description.R:53:5'): setting elements works with legacy = TRUE ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-fetch-description.R:52:3 2. │ └─cassette$call_block(...) 3. └─qualtRics::fetch_description(...) at test-fetch-description.R:53:5 4. └─qualtRics::metadata(surveyID = surveyID, get = elements, ...) 5. └─base::data.frame(...) ── Error ('test-fetch-description.R:90:6'): passing a list to elements when legacy = TRUE succeeds with warning ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-fetch-description.R:88:2 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─cassette$call_block(...) 9. └─qualtRics::fetch_description(...) at test-fetch-description.R:90:6 10. └─qualtRics::metadata(surveyID = surveyID, get = elements, ...) 11. └─base::data.frame(...) ── Error ('test-metadata.R:22:5'): metadata() should return metadata + questions + responsecounts ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-metadata.R:21:3 2. │ └─cassette$call_block(...) 3. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP") at test-metadata.R:22:5 4. └─base::data.frame(...) ── Error ('test-metadata.R:36:5'): metadata() returns flow if specified in new way (char vec) ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-metadata.R:35:3 2. │ └─cassette$call_block(...) 3. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP", get = "flow") at test-metadata.R:36:5 4. └─base::data.frame(...) ── Error ('test-metadata.R:50:5'): metadata() ADDS flow if specified in old way (logical list) ── Error in `data.frame(surveyID = resp_filt$id, name = resp_filt$name, ownerId = resp_filt$ownerId, organizationId = resp_filt$organizationId, isActive = resp_filt$isActive, creationDate = resp_filt$creationDate, lastModifiedDate = resp_filt$lastModifiedDate, expiration_startdate = ifelse(is.null(resp_filt$expiration$startDate), NA, resp_filt$expiration$startDate), expiration_endDate = ifelse(is.null(resp_filt$expiration$endDate), NA, resp_filt$expiration$endDate))`: arguments imply differing number of rows: 0, 1 Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-metadata.R:48:1 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─cassette$call_block(...) 9. └─qualtRics::metadata("SV_3gbwq8aJgqPwQDP", get = list(flow = TRUE)) at test-metadata.R:50:5 10. └─base::data.frame(...) [ FAIL 11 | WARN 2 | SKIP 16 | PASS 64 ] Error: Test failures In addition: Warning message: In readRenviron("~/.Renviron") : file 'C:\Users\CRAN\Documents/.Renviron' cannot be opened for reading Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [3s] OK * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 1 ERROR