Learn R Programming

foundry (version 0.13.0)

datasets.download_files: Download Foundry Files locally.

Description

Download Foundry Files locally.

Usage

datasets.download_files(alias, files)

Value

A list mapping Foundry Dataset files to the local file paths where files were downloaded.

Arguments

alias

The alias representing the Dataset.

files

The file paths or file properties.

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab