Welcome to the LimeSurvey Community Forum

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

Problem importing R export data

  • spalan
  • spalan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #180019 by spalan
Problem importing R export data was created by spalan
I have enabled the R export plugin and exported the syntax and data files for my survey. However, when I try to import the data using
Code:
source("SYNTAXFILE.R", encoding = "UTF-8")

I get an error message saying

Error in source("survey_622524_R_syntax_file.R", encoding = "UTF-8") :
survey_622524_R_syntax_file.R:2879:9: unexpected symbol
2878: names(data)[586] <- "Goodbye"
2879: Unknown type


And indeed, when I open the syntax file, the last two lines in it are:
Code:
names(data)[586] <- "Goodbye"
Unknown type

The problem is obviously caused by the last line, since R does not know how to interpret "Unknown type".

Am I doing something wrong or is there a problem in the plugin's export?

Best,
Stefan.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #180029 by DenisChenu
Replied by DenisChenu on topic Problem importing R export data
LimeSurvey version and build number
LSS file (or LSA if possible) to check the issue
And maybe a manual.limesurvey.org/Check_data_integrity can fix the issue.

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.
  • spalan
  • spalan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #180030 by spalan
Replied by spalan on topic Problem importing R export data
I am sorry - I am using the LimeSurvey instance hosted on limesurvey.org. This is version 3.15.8. I have now attached the .lss file:

File Attachment:

File Name: limesurvey...2524.lss
File Size:553 KB
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #180037 by DenisChenu
Replied by DenisChenu on topic Problem importing R export data
If you use limesurvey instance hosted : i think it's best to contact support www.limesurvey.org/customer-support/contact-us

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 following user(s) said Thank You: spalan
The topic has been locked.
  • spalan
  • spalan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #180039 by spalan
Replied by spalan on topic Problem importing R export data
Thanks for the advice - I have opened a ticket now!

Best,
Stefan.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose