mrdwab / koboloadeR

KoBo Toolbox offers a convenient way to collect data using web and mobile forms. This package facilitates the retrieval of data entered using these tools using the KoBo Toolbox API (v1).
11 stars 44 forks source link

Name too long error for some datasets (using Windows) #4

Open mrdwab opened 8 years ago

mrdwab commented 8 years ago

Getting an error message on Windows:

Error in file.info(input) : 
  file name conversion problem -- name too long?
mrdwab commented 8 years ago

This seems to be related to fread, because I don't get the error when reading in the data with any other functions (read.csv, read_csv, for example).

I was able to get it working by writing the binary output to a csv tempfile and then reading that back in with fread, but I'm not sure if there's a better way. Not sure if to raise an issue yet with @arunsrinivasan

mrdwab commented 8 years ago

Not closing this issue yet, but have not been having any problems since https://github.com/mrdwab/koboloadeR/commit/1005087713439cd9e6fc39e4221c28e7978587e5. Seems silly to have to resort to read_csv, but on the other hand, read_csv automatically parses the time columns in the dataset too, which seems to be a nice feature.