Open wolass opened 5 years ago
Hi, did you solve this problem? I have the same problem with some installations of Limesurvey.
No I haven't .
Hi there, I have the same issue. It seems linked to the version of Limesurvey (an old one here) : see this commit https://github.com/cloudyr/limer/commit/d7c0c3ecf4e2393045711622589165e75c3b5f4d#diff-c913239c7e28d0566d870ec92da5855c One easy solution could be to redefine locally :
base64_to_df <- function(x) {
raw_csv <- rawToChar(base64enc::base64decode(x))
return(read.csv(textConnection(raw_csv), stringsAsFactors = FALSE, sep = ","))
}
Then (ex.) :
raw_data <- call_limer(method = "export_responses",
params = list(iSurveyID = survey.id,
sDocumentType = "csv",
sLanguageCode = "fr",
sCompletionStatus = "complete",
sHeadingType = "code",
sResponseType = "long"))
data <- base64_to_df(raw_data)
Hi guys! Thanks for developing the package
I have encountered the following problem: Whenever I download the responses I get all the entries but in a strange format where all the columns are combined into one.
I tried to circumvent this using direct call using call_limer, but it basically gives me raw data which if I push to base64_to_df - gives just the same results as using get_response.
This guy has the same issue - so at least I'm not alone: https://stackoverflow.com/questions/51989013/trying-to-pull-down-data-in-r-from-limesurvey-its-failing-why
All the variables are squashed into one line with points as separators: as :
q620.cortico_priorv5..q620.cortico_acute..q620.cortico_primcarev3..q620.cortico_centre..q620.cortico_no..q620.other_priorv5..q620.other_acute..q620.other_primcarev3..q620.other_centre..q620.other_no..q631autoinjbrandv7.q632autoinjnumberv7.q633autoinjdosisv7.qcommentv5
I have underscores in my variable names - could this be a problem?This is my session info: