datasets.upload_files {foundry}R Documentation

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)

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.

Value

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

Examples

## Not run: 
# 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")

## End(Not run)


[Package foundry version 0.13.0 Index]