-
Notifications
You must be signed in to change notification settings - Fork 70
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
Comments
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 |
Same issue, but the workaround of renaming the survey works fine. 👍 |
Originator of survey left employment - finally got someone in IT to change the title. |
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?
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?
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?
The text was updated successfully, but these errors were encountered: