datasets.download_files {foundry} | R Documentation |
Download Foundry Files locally.
Description
Download Foundry Files locally.
Usage
datasets.download_files(alias, files)
Arguments
alias |
The alias representing the Dataset. |
files |
The file paths or file properties. |
Value
A list mapping Foundry Dataset files to the local file paths where files were downloaded.
Examples
## Not run:
# Download a single file in a Dataset
downloaded_file <- datasets.download_files("my_alias", c("dir/my_file.csv"))
read.csv(downloaded_file$`dir/my_file.csv`)
# Extract text from all PDF files in a Dataset
pdf_files <- datasets.list_files("my_alias", regex = ".*\\.pdf")
downloaded_files <- datasets.download_files("my_alias", pdf_files)
contents <- lapply(downloaded_files, pdftools::pdf_text)
## End(Not run)
[Package foundry version 0.13.0 Index]