-
Notifications
You must be signed in to change notification settings - Fork 48
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
problematic characters in data dictionary #290
Comments
Hi @begavett, thanks for taking the time to report this. Can you provide any additional information?
|
Hi @wibeasley I noticed the exact same error appears when using |
Ok, this makes sense, and is consistent with #272. But please provide more information so someone can help you better. What happened when you followed the “Problems in the project’s metadata/dictionary.” in the troubleshooting vignette? Several people gave input when we wrote it, for the situation that I think you're in. |
Thank you for alerting me to #272. I didn't originally encounter that issue in my search. Using a text editor, I found some non-ASCII characters in the data dictionary using a regex search for [^\x00-\x7F]+ and then replaced those with standard characters. That worked for me, so now I am able to successfully read in the data dictionary using |
@begavett, I'd really like to build up a test be of problematic characters.
|
The problematic characters for me were: There were also characters picked up by my regex search, but I'm not sure if they were causing any problems (I made my changes in batch so I wasn't able to test individual characters for problems). This was done in REDCap 9.6.1 using v2.2 of redcapAPI and v0.10.2.9005 of REDCapR. |
@begavett, will you please go to the "Project Revision History" tab and download the last problematic dictionary. And then please send me the rows of the csv (at [email protected]) that you think might have caused problems? As you can see from the existing bank I won't include your actual item. Just the problematic characters in the midst of otherwise meaningless metadata. |
@begavett, I've copied the characters you listed above and included them in the problematic-dictionary.csv. All the tests pass under the current version of REDCapR. But there's a chance that using the GitHub comments as a middleman subtly sanitized the characters. I'd still like to see the exact few lines of the data dictionary with those characters you mentioned above --especially if the current version of REDCapR is still throwing an error with them. Building up the existing bank would help the package be more robust for everyone. If you're willing, please reopen the issue and include the exact lines. Or email the part of the data dictionary containing those variable descriptions. |
> REDCapR::redcap_metadata_read(redcap_uri = myURI, token = myToken)
Error in inherits(ds, "data.frame") : object 'ds' not found
The text was updated successfully, but these errors were encountered: