ropensci / qualtRics

Download ⬇️ Qualtrics survey data directly into R!
https://docs.ropensci.org/qualtRics
Other
215 stars 70 forks source link

Parsing Failures in getSurveys #76

Closed bradydehart closed 5 years ago

bradydehart commented 6 years ago

Hello,

Since to update in February and the incorporation of readr, I frequently get parsing failures when importing data using the numeric values instead of the labels. This issue did not occur before the update. I have included a screengrab (with personal and IRB related info edited out). This appears to be a similar problem as was previously posted. However, when I set useLabels to FALSE and convertvariables to FALSE in the registerOptions command, it does not resolve the issue. Thank you for your help and wonderful package! error

JasperHG90 commented 6 years ago

Hi Brady,

Thanks for your message and my apologies for this late response. I'm currently working on a project and I don't have a lot of time to spend on this project. There will be an update soon (-ish) (+- 2 months) that will address this and other issues. Given that you are running into issues, could I ask you if you are available for testing out updates once I get around to them?

Thanks!

Jasper.

bradydehart commented 6 years ago

I would be happy to test. Thanks!

Brady

janostermann commented 5 years ago

Me too :) Thanks Jasper!

Lingtax commented 5 years ago

Just wanting to 👍 this issue and volunteer for testing.

juliasilge commented 5 years ago

Hello there, all! 👋 I am the new maintainer of this package, and I'd love to get to the bottom of some of these issues with read_survey(). If you are able, can you re-install from GitHub here, run the following code, and then email me (my address is in the DESCRIPTION file) the CSV file at the path you find? It will be a fairly raw, unprocessed CSV file, but that is the one that is causing problems, apparently!

root_url <- qualtRics:::append_root_url(Sys.getenv("QUALTRICS_BASE_URL"), "responseexports")
raw_payload <- qualtRics:::create_raw_payload(
    surveyID = <YOUR SURVEY ID HERE>,
    label = TRUE,
    last_response = NULL,
    start_date = NULL,
    end_date = NULL,
    unanswer_recode = NULL,
    limit = NULL,
    local_time = FALSE,
    include_questions = NULL
  )
res <- qualtRics:::qualtrics_api_request("POST", url = root_url, body = raw_payload)
ID <- res$result$id
survey.fpath <- qualtRics:::download_qualtrics_export(paste0(root_url, ID), verbose = TRUE)
survey.fpath
juliasilge commented 5 years ago

Thanks so much for this report! If you use qualtRics again and have problems, please do open a new issue.