Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Using RemoteControl in R and reading data from limesurvey into R

More
6 years 1 month ago #164055 by jelo
What R / OS environment is used on the client side?
I would try to connect from local computer to server1 with http first. Change credentials afterwards. If http is working, you have an issue with the TLS encryption. Which can be a server or client side issue.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
6 years 1 month ago #164056 by first
Disabling modsecurity at domain level worked well but white listing IP didnt . Do you suggest disabling modsecurity? Any other thoughts?

Survey Designer and Programmer
The topic has been locked.
More
6 years 1 month ago #164078 by jelo
So, you already narrowed the issue down to mod-security? If that is the case, you should consult your administrator/hoster etc. If a mod-security rule is the issue, you can disable that rule per domain, per URL etc. You don't need to disable ModSecurity completely. But server administration is not part of this forum.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
4 years 5 months ago - 4 years 5 months ago #189868 by zufolo441
Hi,
I'm trying to use this library, but get_responses puts all columns values in one, separed by commas, and all column titles in one, separed by dots.

I'm using last version downloaded by github, LimeSurvey 2.6.4-lts Build 170202 and R version 3.6.1 (2019-07-05)

this is the script:
library("limer")
options (lime_api = ' questionari.istitutodeglinnocenti.it/ind.../admin/remotecontrol ')
options(lime_username = 'XXXX')
options(lime_password = 'XXXX')
get_session_key()
data <- get_responses(iSurveyID=XXXX, sLanguageCode= 'it', sResponseType='long')
release_session_key()


thanks!
Last edit: 4 years 5 months ago by zufolo441.
The topic has been locked.
More
4 years 4 months ago #191276 by zufolo441
I found the problem:

in base64_to_df

I had to replace

return(read.csv(textConnection(raw_csv), stringsAsFactors = FALSE, sep = ";"))

with

return(read.csv(textConnection(raw_csv), stringsAsFactors = FALSE, sep = ","))
The topic has been locked.
More
4 years 2 months ago #192961 by jorgesinval
I'm facing the same problem. Did you solve the problem?

Sinval
The topic has been locked.
More
4 years 2 months ago #192965 by zufolo441
as in previous answer: by correcting the code.
The topic has been locked.
More
4 years 2 months ago #192967 by jorgesinval
Sorry, I did not understand which part of the code I should change regarding the

```
Error: Argument 'txt' must be a JSON string, URL or file.
```

Sinval
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose