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.