-
Notifications
You must be signed in to change notification settings - Fork 286
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
Ignore comments in tokenizer #68
Comments
👍 I sometimes encounter CSV files with comments. I'm sorry to say I even used to add them myself. |
👎 for me, the only time I have used this feature in If you do decide to add it please make the default off! |
👍 default == off, I see people commenting in delimited files all the time |
The default would definitely be off - I've also had bad experiences where I had to turn it off |
👍 Some instruments write reasonable delimited files but put metadata in the file itself, not necessarily at the top, so this would be a good complement to |
👍 for the reasons @jennybc said. |
👍 I was just about to open an issue to suggest this. My current use case is reading in files produced by the Stan package for MCMC (example output; note the comment lines at the beginning, middle, and end of the file). Currently, I have to make two passes through the file and do some extra fiddling, and it would be nice if all of that could be automated. If it doesn't add too much complication, it might be nice if the comments (or at least their positions) could be included as an attribute as well, similar to how "problems" are handled. Thanks for making yet another great package! |
👍 Sometimes needed for comments and metadata. |
My bad for just adding an issue to request this -- sorry for the cruft. Seems to me that it does no harm when not used and can be make it or break it when the file you need need to read has comments in it. Frankly, I'd like to see more people put meta data in commented portions of delimited files because otherwise it tends to go missing. |
👍 |
👍 |
1 similar comment
👍 |
This is very exciting. 🎉 |
read.csv()
etc support acomment
argument to ignore (e.g.) everything after#
.Please 👍 this issue if you'd like this feature.
The text was updated successfully, but these errors were encountered: