Using RemoteControl in R and reading data from limesurvey into R

More
4 years 2 months ago - 4 years 2 months ago #126324 by fransmarcelissen
Hello,
Limesurvey is a fantastic program and R is the best statistical program there is. But I do'nt like exporting using the R export module. Fortunately it is extremely simple in R to read data directly from limesurvey, using RemoteControl 2 and the wonderful limer package made by Andrew Heiss. Here attached is an example.

Success!
Frans
Attachments:
Last edit: 4 years 2 months ago by fransmarcelissen.
The following user(s) said Thank You: Ben_V

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
4 years 2 months ago #126334 by DenisChenu
Hey !

Seems VERY COOL !

It's great if you can take time to update our manual for this : manual.limesurvey.org/RemoteControl_2_API

And maybe put a link to github.com/andrewheiss/limer ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #126339 by fransmarcelissen
Hi Denis,
I have sent the file to This email address is being protected from spambots. You need JavaScript enabled to view it. with request to add this to the manual. The link is in the tekst.
I hope it is usefull to many people.
Frans

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #126340 by DenisChenu
Hi fransmarcelissen,

T
Our manual is a wiki, we already have some work with debugging/patching/improve. It's best if you can update the manul.

I udpdate it : manual.limesurvey.org/RemoteControl_2_API#R_example_and_helper but know nothing of R ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #134117 by first

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137474 by jelo

DenisChenu wrote: And maybe put a link to github.com/andrewheiss/limer ;)

Is now redirecting to github.com/cloudyr/limer .
Anyone currently using limer.

A connection with LS 2.06LTS via R is resulting in
"Argument 'txt' must be a JSON string, URL or file."" at get_session.

A RPC-JSON access to the same installation via other code (e.g. C#) is working fine.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137495 by DenisChenu
I see in github.com/cloudyr/limer/issues/11 you spoke for https : did you force https in LS admin part ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137500 by fransmarcelissen
I am using limer x times a day.
Installing in the following way works perfectly on my system. limer is now part of the (unfinished) cloudyr project. Limer is not fully stable, but can be used.

if (!require("devtools")) {
install.packages("devtools")
library("devtools")
}
install_github("cloudyr/limer")

The documentation on manual.limesurvey.org/RemoteControl_2_API has to be updated. I am willing to do this, but could anyone show me how I can do that? The example has to be updated as well.
Frans

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137504 by jelo

DenisChenu wrote: did you force https in LS admin part ?

Agnostic setting: Don't enforce...
Since there is no issue when accessing it via C# I'm currently looking for issues in R.
E.g. the library R uses to access via TLS/SSL might have issues with certain ciphers.
Or a small glitch with the UTF8 handling.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137507 by jelo

fransmarcelissen wrote: I am using limer x times a day.

The guide is fine. The current instructions on the WIKI are fine. The redirection to the new GITs is working.

Since you still use the current package without a glitch can you tell us, what version of R is used?
Which OS? Linux,Mac or Windows?

Might be a problem with the OS in combination with R.

Thanks to both of you.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #137508 by jelo

fransmarcelissen wrote: The documentation on manual.limesurvey.org/RemoteControl_2_API has to be updated. I am willing to do this, but could anyone show me how I can do that?

When you follow this link and log-in you should be able to edit pages.
manual.limesurvey.org/index.php?title=Sp...=RemoteControl+2+API

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
Last edit: 3 years 6 months ago by jelo.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137509 by fransmarcelissen
I use windows 10 and ubuntu linux (several versions, for instance 14.4). I also use several versions of R (mostly 3.1.2). No problems experienced.
Could you please report more in detail where you recieve which error messages? Than I could try to replicate it.
The documentation has to be updated because the output type of the main routine (call_limer) whas changed by the author in the last version.
Frans

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137515 by fransmarcelissen
The following user(s) said Thank You: jelo, Ben_V

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137524 by jelo

fransmarcelissen wrote: Than I could try to replicate it.

Do you access the API via https? Or http only?
In your example it looks like you use http and no transport encryption.

Thanks for your update of the manual.
I will report back.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137526 by fransmarcelissen
I do exactly as listed. I do not use encryption (https). I never tried, so I do not know whether there could be a problem.
Frans

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!