-
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
REDCapR: redcap_read function gives error in R version 3.6.1 and not 3.5.3 #272
Comments
@sybandrew, thanks for providing so much detail. There's a chance that it's not a difference in R, but a difference in the packages. Will you please update all the packages ( If the problem still remains, can you please tell me your version of REDCap, and the results of |
Cool. A few more questions
This might be related to an issue from yesterday (#269) |
Thank you. |
This wasn't the original source of the problem, but could you
|
I sent you an email with the error I found along with some questions. Thanks |
@sybandrew and I worked on this and determined that the problematic character in the data dictionary was a curly single quote (as opposed to a straight curly quote). This is very similar to the issue (and solution) raised by @vortexing in #269 two days before this one. The solution to #269 also fixed this guy. As a precaution, we included a different type of curly/slanty single quote in the test suite, so a regression bug is less likely. If someone in the future comes across a character that causes problem, please follow my request in
Here are some screenshots of how the curly quote looks in REDCap and in the dictionary (viewed as vanilla csv) Here is a description that distinguishes the types of quotes. https://practicaltypography.com/straight-and-curly-quotes.html Note that what is good with humans is trickier for computers. |
Hello,
There is an issue with the redcap_read function in the package REDCapR for people using the new version of R (3.6.1) compared to the older R version (3.5.3).
What I did: I attached two images: REDCapR photo 1 and REDCapR photo 2 of the code I ran in R markdown and the error that I got at the end of the code.
What I was expecting: I was expecting the last part of that code in image: REDCapR photo 1 & 2 to import my data from REDCap but it didn't. I looked up the error and troubleshooted several times but nothing worked. Then 2 of my colleagues tried.
What actually happened: I got an error using R version 3.6.1 on lenovo laptop which can be seen in REDCapR photo 2.
I ended up using the function redcap_read_oneshot instead of redcap_read which worked and is shown in image REDCapR photo 3. However, I read that redcap_read is used for larger datasets and if larger datasets need to be imported, I would like to use this function. Please help. Thank you.
Best regards,
Sybandrew
The text was updated successfully, but these errors were encountered: