Read a file from an Integral repository using a specified function
Source:R/integral_read.R
integral_read.Rd
This function downloads a file from an Integral repository to a temporary location and then applies a specified function to read or process the file.
Usage
integral_read(FUN, ..., file, url = getOption("integral_url"))
Arguments
- FUN
A function to be applied to the downloaded file. This could be any function that takes a file path as its first argument, such as
read.csv
,readRDS
, etc.- ...
Additional arguments to be passed to the
FUN
function.- file
A character string representing the path of the file within the repository to be downloaded. This can be copied to the clipboard directly from Integral.
- url
A character string representing the base URL of the Integral repository. Defaults to
getOption("integral_url")
.