Description Usage Arguments Value Examples
Check the suffix of the filename and return one of zstdcat, zcat, or cat
1 2 3 4 | cat_or_zcat(
filename,
configs = list(zstdcat.path = "zstdcat", zcat.path = "zcat")
)
|
f |
A file path. |
One of the following 3 commands: zstdcat, zcat, or cat.
1 2 3 4 5 6 7 8 | cat_or_zcat("file.txt")
cat_or_zcat("file.txt.gz")
cat_or_zcat("file.txt.zst")
## Not run:
cat_or_zcat(file_path)
fread(cmd = paste(cat_or_zcat(file_path), file_path))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.