View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08975Bug reportsPluginspublic2014-04-22 21:28
Reportermikeg Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary08975: R data exported without a header
Description

In 2.0 and before, when data was exported to R, the survey__datafile.csv the first line was a header line. I believe was ignored since all of the relevant information is defined in the surveysyntax_file.R. In the current version this header line is missing and, as a result, the first set of responses are ignored.

Steps To Reproduce

Export a file to .R

Additional Information

This problem could be fixed by (a) putting the header line back at the start of the syntax file or (b) changing the code in survey_*_syntax.R from

data <- read.csv("survey_*_R_data_file.csv", quote = "'\"", na.strings=c("", "\"\""), stringsAsFactors=FALSE)

to

data <- read.csv("survey_*_R_data_file.csv", quote = "'\"", na.strings=c("", "\"\""), stringsAsFactors=FALSE, header = FALSE)

This will override the default setting for read.csv() which is header=TRUE.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)No idea. Using limeService
I will donate to the project if issue is resolvedNo
Browser
Database type & versionNo idea
Server OS (if known)limeservice
Webserver software & version (if known)sorry
PHP Versionsorry again

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-04-17 23:32

administrator   ~29829

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=14171

c_schmitz

c_schmitz

2014-04-22 21:28

administrator   ~29854

2.05+ Build 140422 released.

Related Changesets

LimeSurvey: master 1976cf7f

2014-04-17 21:32:56

c_schmitz

Details Diff
Fixed issue 08975: R data exported without a header Affected Issues
08975
mod - application/core/plugins/ExportR/RDataWriter.php Diff File

Issue History

Date Modified Username Field Change
2014-04-16 22:03 mikeg New Issue
2014-04-17 23:30 c_schmitz Assigned To => c_schmitz
2014-04-17 23:30 c_schmitz Status new => assigned
2014-04-17 23:32 c_schmitz Changeset attached => LimeSurvey master 1976cf7f
2014-04-17 23:32 c_schmitz Note Added: 29829
2014-04-17 23:32 c_schmitz Resolution open => fixed
2014-04-17 23:33 c_schmitz Status assigned => resolved
2014-04-17 23:33 c_schmitz Fixed in Version => 2.05+
2014-04-22 21:28 c_schmitz Note Added: 29854
2014-04-22 21:28 c_schmitz Status resolved => closed