-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fread fails if whitespace before first character #1035
Comments
I am experiencing a similar problem; however, the R session completely aborts in 1.9.4, instead of giving a warning message. Here is an example illustrating the format of dataset with which I am working:
Each row begins with two white spaces, but the separator for the rest of the values is a single white space. In version 1.9.4, when I attempted to use fread() in RStudio with my much-larger dataset, I received the following pop-up warning (and the session had to be restarted):
Using version 1.9.5, I instead received this error message:
I found this output very confusing, since I had specified that there was no header row (header = FALSE). The verbose=TRUE version of this output is below.
I am using R version 3.20 ("Full of Ingredients"), with RStudio version 0.98.1103. |
I had the same problem. This works:
but reading the same file with
The file in question can be downloaded from here (66MB's). |
Fixed in devel. Please upgrade and test. |
@arunsrinivasan Tested. It now works on the file I specified above. |
The program I use by default gives output like so:
I first tried with the stable version (1.9.4) and got the following error:
with the development version (1.9.5) I get the following error:
This seems like it would be resolved by #758 or #558 (variable whitespace delimiter)
but just wanted to give another example of a situation where fread currently fails and need to fall back to read.table(sep="") to get the table to read in properly
The text was updated successfully, but these errors were encountered: