Previously I have been successfully using the redcapAPI
package to import data from a REDCap database into R
.
library("redcapAPI")
rcon <- redcapConnection(token="mytoken"),
url = 'my REDCap api url')
df <- data.frame(exportRecords(rcon))
The above code used to return a dataframe with my data, but I am now getting the error below:
The call syntax of exportRecords will undergo a breaking change in the upcoming 3.0.0 release. See Issue #10
Error in exportRecords(rcon) : 1 assertions failed:
* The field choice string does not appear to be formatted for choices.
I don't know how to interpret the error message, but I suspect some change has been made to the R package or my local API. Any help would be most appreciated.