Description Usage Arguments Details Examples
We often find that we are reading the same type of files over and over again. Read is a lazy version of the read.* functions. It tries to intelligently pick the appropriate reader from file extension or mime type info.
1 |
file |
The file(s) or pattern of files to read. |
... |
options to pass to the reader functions. |
verbose |
Print messages? |
glob |
interpret patterns as globs? |
read will first check if the file exists as specified.
If the file is not found then it will check if the file
represents a pattern converted to a regular expression
through glob2rx
if glob=TRUE (default).
Note that only one pattern can be considered if file is
of length greater than 1 it will assume that exact file
names are given.
If multiple files are given or found through pattern
match then the results are given in a list, otherwise
a single object is returned. For elements
of said list, as in the case of a single result,
an attempt will be made to convert results to
a tibble through as_tibble
.
Read will first look for readers with the following priority
Known readers with the given name
Known readers registered to handle the given mime-type
Known readers registered to handle the given file extension
Any loaded function of the form read.<<ext>>
Any loaded function of the form read_<<ext>>
Any loaded function of the form read<<ext>>
where <<ext>>
is replaced by the extension of the file.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.