update on `vcpkg`
joao-aguirre opened this issue · comments
Please update it on vcpkg
, the version available there (8.50) does not have some of the new classes and support (i.e. LineReaderParams
).
Nice lib by the way, I would just suggest an additional option on LineReaderParams
to allow skipping a given number of lines at the top of the file.
Cheers.
Hi @aguirreeng - I only maintain the source repository for rapidcsv. I'm not involved in other distribution of rapidcsv, via for example package managers. I would propose checking with vcpkg
how to request an update.
Nice lib by the way, I would just suggest an additional option on LineReaderParams to allow skipping a given number of lines at the top of the file.
Thanks! Actually, assuming your CSV data has column labels, one should be able to set the column label offset to a value > 0, to skip that many lines at the beginning.
Let's say the file content is:
# These are some lines that
# are not part of the actual
# CSV data.
Open,High,Low,Close,Volume,Adj Close
64.529999,64.800003,64.139999,64.620003,21705200,64.620003
64.419998,64.730003,64.190002,64.620003,20235200,64.620003
64.330002,64.389999,64.050003,64.360001,19259700,64.360001
64.610001,64.949997,64.449997,64.489998,19384900,64.489998
64.470001,64.690002,64.300003,64.620003,21234600,64.620003
Then one read it like this (skipping 3 first lines):
rapidcsv::Document doc("examples/skiplines.csv", rapidcsv::LabelParams(3, 0));
I'll proceed to close this issue, but feel free to re-open if you have any follow-up questions!
I have submitted an update of the vcpkg port to the latest version (8.53): microsoft/vcpkg#20941. Should be merged within a couple days.
Hi @chausner - that's great. Thank you very much! 👍