- Posts: 5033
- Thank you received: 1257
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
- jelo
- Offline
- Platinum Member
Less
More
6 years 2 months ago #164055
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Using RemoteControl in R and reading data from limesurvey into R
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.
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.
- first
- Offline
- Elite Member
Less
More
- Posts: 227
- Thank you received: 36
6 years 2 months ago #164056
by first
Survey Designer and Programmer
Replied by first on topic Using RemoteControl in R and reading data from limesurvey into R
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago #164078
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Using RemoteControl in R and reading data from limesurvey into R
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.
- zufolo441
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 3
4 years 6 months ago - 4 years 6 months ago #189868
by zufolo441
Replied by zufolo441 on topic Using RemoteControl in R and reading data from limesurvey into R
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!
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!
Attachments:
Last edit: 4 years 6 months ago by zufolo441.
The topic has been locked.
- zufolo441
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 3
4 years 5 months ago #191276
by zufolo441
Replied by zufolo441 on topic Using RemoteControl in R and reading data from limesurvey into R
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 = ","))
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.
- jorgesinval
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
4 years 2 months ago #192961
by jorgesinval
Sinval
Replied by jorgesinval on topic Using RemoteControl in R and reading data from limesurvey into R
I'm facing the same problem. Did you solve the problem?
Sinval
The topic has been locked.
- zufolo441
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 3
4 years 2 months ago #192965
by zufolo441
Replied by zufolo441 on topic Using RemoteControl in R and reading data from limesurvey into R
as in previous answer: by correcting the code.
The topic has been locked.
- jorgesinval
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
4 years 2 months ago #192967
by jorgesinval
Sinval
Replied by jorgesinval on topic Using RemoteControl in R and reading data from limesurvey into R
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.
```
```
Error: Argument 'txt' must be a JSON string, URL or file.
```
Sinval
The topic has been locked.