file_get: Retrieve a file from Filebin

View source: R/file-get.R

file_getR Documentation

Retrieve a file from Filebin

Description

Retrieve a file from Filebin

Usage

file_get(filename, bin, file = NA, overwrite = FALSE)

Arguments

filename

File name or URL.

bin

Bin name. If NA the generate random bin name.

file

File name to use to save results. If FALSE then don't save to file.

overwrite

Whether to overwrite existing file.

Value

Contents of file.

Examples

## Not run: 
posted <- file_post(LOREM_IPSUM, bin = "latin-text")

# Discard path and just retain filename.
filename <- basename(LOREM_IPSUM)
file_get(filename, "latin-text")

# Delete downloaded file.
file.remove(filename)

## End(Not run)

filebin documentation built on Sept. 2, 2023, 9:07 a.m.