Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in unz (colon in survey title) #345

Closed
higgi13425 opened this issue Jun 17, 2024 · 3 comments · Fixed by #349
Closed

Error in unz (colon in survey title) #345

higgi13425 opened this issue Jun 17, 2024 · 3 comments · Fixed by #349

Comments

@higgi13425
Copy link

Apprently unable to connect/unzip a survey file with a colon in the title.
The survey is entitled

Survey of Topics for Clinical Trials Academy 2: Running Your Own Trial

Code is
my_survey <- fetch_survey(surveyID = 'SV_9Kw9QbuMrMyOoUC')
|===============================================| 100%
Error in unz(description = zip_path, filename = csv_filename, open = "rb") :
cannot open the connection
In addition: Warning message:
In unz(description = zip_path, filename = csv_filename, open = "rb") :
cannot open zip file '/var/folders/93/s18zkv2d4f556fxbjvb8yglc0000gp/T/RtmpAYTrax/file1835139200ab0.zip:Survey of Topics for Clinical Trials Academy 2'

This appears to cut off the path at the colon, so that it is an incorrect path.

Ideas on how to fix?

@juliasilge
Copy link
Collaborator

Ah yep, this is related to #329 and also #195. Since we have to deal with file paths on disk here in this R package and unzipping files, we can't handle special characters like : in survey titles. Eventually we would like to provide a way for you to change your survey title from R, but for now the workaround is for you to change your survey title in the Qualtrics UI. I know that is likely disappointing! 😞

@gdmcdonald
Copy link

Same issue, but the workaround of renaming the survey works fine. 👍

@higgi13425
Copy link
Author

Originator of survey left employment - finally got someone in IT to change the title.
This did work

WillForan added a commit to WillForan/qualtRics that referenced this issue Jul 17, 2024
WillForan added a commit to WillForan/qualtRics that referenced this issue Jul 17, 2024
fetch_survey:export_responses_filedownload can use external unzip binary
This streams zip file contents into a temporary csv file to avoid unz()

TODO: check system('which unzip') or error?
WillForan added a commit to WillForan/qualtRics that referenced this issue Jul 17, 2024
fetch_survey:export_responses_filedownload can use external unzip binary
This streams zip file contents into a temporary csv file to avoid unz()

TODO: check system('which unzip') or error?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants