Closed
Description
Using read_csv
, is it possible at all to suppress the "Parsed with column specification: ..." messages?
I have an R Markdown document that involves importing 50+ CSV files with multiple columns each, and the output gets very bloated by the 50+ "Parsed with..." blocks. I have tried to set the chunk options message
and warning
to false, to no avail.
Activity
jimhester commentedon Jan 10, 2019
The best solution assuming your data formats are consistent is to include the column specifications in the read calls. This will catch errors early if the data format changes.
You can copy paste the printed output directly (which is one of the intents of printing it). e.g.
Otherwise you can use
col_types = cols()
to explicitly use the default guessing behavior, which also suppresses the printing.Created on 2019-01-09 by the reprex package (v0.2.1)
jimhester commentedon Jan 10, 2019
Also the column specifications are normal R messages, so setting
message = FALSE
in your chunk options will suppress them. I realize you said you tried this, but I think something must have gone awry, the following Rmd file does suppress them as expected.bovender commentedon Jan 10, 2019
Well this is embarassing... This morning
message = FALSE
does indeed suppress those messages. Maybe some issue with caching yesterday? Thank you very much indeed for your assistance!col_types
messages #1000lock commentedon Jul 9, 2019
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/