Learn R Programming

foundry (version 0.13.0)

datasets.upload_files: Upload a local file or folder to a Foundry Dataset.

Description

Upload a local file or folder to a Foundry Dataset.

Usage

datasets.upload_files(files, alias)

Value

A list mapping local file paths to the corresponding Foundry Dataset file.

Arguments

files

The local files and folders to upload. If a folder is provided, all files found recursively in subfolders will be uploaded.

alias

The alias representing the Dataset.

Examples

Run this code
if (FALSE) {
# Upload RDS files to a Dataset
local_dir <- file.path(tempdir(), "to_upload")
dir.create(local_dir)
saveRDS(iris, file.path(local_dir, "iris.rds"))
saveRDS(Titanic, file.path(local_dir, "Titanic.rds"))

datasets.upload_files(local_dir, "my_output")
}

Run the code above in your browser using DataLab