You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Michael Chirico, Jimmy O'Donnell, Malcolm Cook, Boxiang Liu, Tokhir Dadaev, Ufuk Kirik, Ben Bond-Lamberty, Niek de Klein, Artem Klevtsov, Steve Bronder and 2 more
Actually fread seem to assume it already has this implemented as it is mentioning comment.char in its warnings. This is a warning I've recently saw (using the dev 1.10.5 version)
Warning in fread(file_x, skip = startind - 1L, header = TRUE, fill = TRUE) :
Stopped early on line 2. Expected 168 fields but found 235. Consider fill=TRUE and comment.char=.
Also, not sure why isn't this an error? It make it harder to catch it with tryCatch
Reacted by yaakovfeldman, Tokhir Dadaev and matthew
Interesting. Can you chase the comment and find an author and commit per git blame?
I am mostly using the CRAN version so I work around the issue (when I have to, which is not that often).
AFAIR status of this FR or works on it are well reflected in comments. Be sure to upvote this FR so it will likely speed up its implementation, or at least prioritise. You are also welcome to submit a patch introducing such feature.
There is still that error message that references comment.char:
Warning in fread("vep_output") :
Stopped early on line 4. Expected 6 fields but found 5. Consider fill=TRUE and comment.char=. First discarded non-empty line: <<## Using cache in /home/dgealow/.vep/homo_sapiens/113_GRCh38>>
This is incredibly confusing since comment.char is not a parameter to fread. If there are no plans to actually implement it any time soon (I notice this ticket has been open for 10 years) I'd suggest removing the reference from that error message.
Activity
mattdowle commentedon Oct 3, 2014
Need to ignore whole lines (starting with comment) as well as trailing comments after valid lines.
mattdowle commentedon Sep 23, 2015
Then update this question : http://stackoverflow.com/questions/18920777/fread-data-table-in-r/
eddelbuettel commentedon Oct 19, 2017
Bump. Needing this right now.
RLathamBAH commentedon Jan 19, 2018
DavidArenburg commentedon Feb 14, 2018
Actually
freadseem to assume it already has this implemented as it is mentioningcomment.charin its warnings. This is a warning I've recently saw (using the dev 1.10.5 version)Also, not sure why isn't this an error? It make it harder to catch it with
tryCatcheddelbuettel commentedon Feb 14, 2018
Interesting. Can you chase the comment and find an author and commit per
git blame?I am mostly using the CRAN version so I work around the issue (when I have to, which is not that often).
DavidArenburg commentedon Feb 14, 2018
@eddelbuettel You can find it here https://github.com/Rdatatable/data.table/blame/master/src/fread.c#L2351
eddelbuettel commentedon Feb 15, 2018
Thanks. Which one can click on for
git blameso yield ...by Matt just one day ago (!!)
map2085 commentedon Apr 3, 2018
12 remaining items
jangorecki commentedon May 10, 2019
@ArthurPERE it is best to use a documentation as reference and defined behaviour. There you can also find there is no such a thing like
comment.charparameter. You can findfreadmanual at https://rdatatable.gitlab.io/data.table/library/data.table/html/fread.htmlAFAIR status of this FR or works on it are well reflected in comments. Be sure to upvote this FR so it will likely speed up its implementation, or at least prioritise. You are also welcome to submit a patch introducing such feature.
davidlvb commentedon Aug 7, 2019
DanielMedic commentedon Jan 28, 2020
darcyj commentedon Mar 18, 2020
doorisajar commentedon Jun 4, 2020
asgr commentedon Aug 4, 2020
mjsteinbaugh commentedon Jan 13, 2021
Following up on this, I'm open to helping develop and/or test this functionality in a future update
jangorecki commentedon Jan 13, 2021
@mjsteinbaugh you are very welcome, please submit PR
dvg-p4 commentedon Nov 14, 2024
There is still that error message that references
comment.char:This is incredibly confusing since comment.char is not a parameter to fread. If there are no plans to actually implement it any time soon (I notice this ticket has been open for 10 years) I'd suggest removing the reference from that error message.
MichaelChirico commentedon Nov 14, 2024
We have a pending PR: #4486. It requires some love to get it over the line :)
(textproc/R-data.table) Updated 1.16.4 to 1.18.4, Fix build against 4…