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

  • fransmarcelissen
  • fransmarcelissen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 5 months ago - 8 years 5 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: 8 years 5 months ago by fransmarcelissen.
The following user(s) said Thank You: Ben_V
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 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 .
I don't answer to private message.
The topic has been locked.
  • fransmarcelissen
  • fransmarcelissen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 5 months ago #126339 by fransmarcelissen
Hi Denis,
I have sent the file to info@limesurvey.org with request to add this to the manual. The link is in the tekst.
I hope it is usefull to many people.
Frans
The following user(s) said Thank You: YacineH
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 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 .
I don't answer to private message.
The topic has been locked.
More
7 years 11 months ago #134117 by first
The topic has been locked.
More
7 years 9 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 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 .
I don't answer to private message.
The topic has been locked.
  • fransmarcelissen
  • fransmarcelissen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 9 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
The topic has been locked.
More
7 years 9 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
The topic has been locked.
More
7 years 9 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
The topic has been locked.
More
7 years 9 months ago - 7 years 9 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
Last edit: 7 years 9 months ago by jelo.
The topic has been locked.
  • fransmarcelissen
  • fransmarcelissen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 9 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
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose