-
Notifications
You must be signed in to change notification settings - Fork 1
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 set_label.default(x[[nm]], lab) #27
Comments
Hello, I'm trying to export these data and an error occurs when I uncomment any of the three fields below:
Error: Traceback:
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I did devtools::install_github("nutterb/redcapAPI") (the master branch) to install 2.3.1. Same error. |
Has anybody found a solution? |
@nutterb ? |
It seems to be a problem with some utf-8 characters (ex. in a surname: "ESTUPI�AN"). These were characters that were imported to that project from excel. How can I set the encoding to UTF-8? |
I can do this and it works:
|
I can't figure out how to do it with exportRecords or redcapConnection |
@nutterb, I vaguely remember this problem with OuhscBbmc/REDCapR#270. |
I've been working on getting access to REDCap again. I got access a couple of weeks ago, but am just now getting to using it. I haven't tried this myself yet, but I'm about to try now. I wonder if doing the following might help:
|
Just to jump on here and say I'm experiencing similar issues -- adding the config=list(encoding= 'UTF-8')) did not resolve the problem. |
FYI -- we found we do not get this error if we set labels=FALSE when using exportRecords. |
Thank you @neurodoclove! That workaround was a gift.... |
I'm getting this error when the content from REDCap does not include a requested field. |
I'm getting this error now as well. Several collaborators are reporting it as well. We are using REDCap 11.4.3. |
We are using REDCap version 10.5.1 and we recently experienced this error in two different situations. One was due to a checkbox field that had no items. (I had to dig into the code in the redcapAPI package to identify the problem.) A second was due to not having appropriate permissions to access all fields. |
(EDIT: nevermind, in this comment I was using redcapAPI v2.3 which is an old version of the library) I also got this error in Redcap v12.4.6 and adding I'll just add that it only happened in 2 of the 14 instruments and those instruments both have radio and checkbox fields with some non-standard looking choices, the first looks like this:
and the other one:
So I suspect it might have to do with either the negative answer code |
I just checked After running |
I think pull request nutterb/redcapAPI#190 fixed this. |
I'm curious about the html. I've seen others report that html in fields causes crashes. It's on my list of things to poke at. |
vubiostat#24 may be relevant. |
redcap 2.7.0 (vubiostat#70) add exportRecordsTyped, which is what is being recommended over exportRecords. Please see https://github.com/vubiostat/redcapAPI this new function addresses HTML and UNICODE characters better than I ever did. |
Hi @nutterb
This is repeat of the error from issue 158:
I tried to install the issue-158 branch, but it doesn't seem to print out the variables. I'm using the latest version:
The text was updated successfully, but these errors were encountered: