View source: R/read_lines_chunked.R
read_lines_chunked | R Documentation |
Read lines from a file or string by chunk.
read_lines_chunked(
file,
callback,
chunk_size = 10000,
skip = 0,
locale = default_locale(),
na = character(),
progress = show_progress()
)
read_lines_raw_chunked(
file,
callback,
chunk_size = 10000,
skip = 0,
progress = show_progress()
)
file |
Either a path to a file, a connection, or literal data (either a single string or a raw vector). Files ending in Literal data is most useful for examples and tests. To be recognised as
literal data, the input must be either wrapped with Using a value of |
callback |
A callback function to call on each chunk |
chunk_size |
The number of rows to include in each chunk |
skip |
Number of lines to skip before reading data. |
locale |
The locale controls defaults that vary from place to place.
The default locale is US-centric (like R), but you can use
|
na |
Character vector of strings to interpret as missing values. Set this
option to |
progress |
Display a progress bar? By default it will only display
in an interactive session and not while knitting a document. The automatic
progress bar can be disabled by setting option |
Other chunked:
callback
,
melt_delim_chunked()
,
read_delim_chunked()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.