pb_read | R Documentation |
A convenience wrapper around writing an object to a temporary file and then
uploading to a specified repo/release. This convenience comes at a cost to
performance efficiency, since it first downloads the data to disk and then
reads the data from disk into memory. See vignette("cloud_native")
for
alternative ways to bypass this flow and work with the data directly.
pb_read(
file,
...,
repo = guess_repo(),
tag = "latest",
read_function = guess_read_function(file),
.token = gh::gh_token()
)
file |
string: file name |
... |
additional arguments passed to |
repo |
string: GH repository name in format "owner/repo". Default
|
tag |
string: tag for the GH release, defaults to "latest" |
read_function |
function: used to read in the data, where the file is
passed as the first argument and any additional arguments are subsequently
passed in via |
.token |
GitHub authentication token, see |
Result of reading in the file in question.
Other pb_rw:
guess_read_function()
,
guess_write_function()
,
pb_write()
try({ # try block is to avoid CRAN issues and is not required in ordinary usage
piggyback::pb_read("mtcars.tsv.gz", repo = "cboettig/piggyback-tests")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.