Description Usage Arguments Details Value Examples
Generates Report on Comma-Broken Status of CSV(s), including broken rows and potential offending columns needing to be quoted in file.
1 | comma_broken_csv(path = ".")
|
path |
path-to-file or path-to-folder |
If path param is a folder, for readability a report named ‘csv_comma_broken_report.txt’ is dropped into path folder and opened automatically to source pane. But if path param is only a file, then the report is only printed to console.
print report to console (and if multiple, sink
s file to parent folder and opens report with file.show()
)
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
comma_broken_csv(getwd())
# or
comma_broken_csv("path_to_file")
# Or if you want to run a test on multiple files
# not contained in the same (grand)parent folder,
# then lapply over the file paths like so:
lapply(c("file.path1", "file.path2"), comma_broken_csv))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.