datasets.upload_files | R Documentation |
Upload a local file or folder to a Foundry Dataset.
datasets.upload_files(files, alias)
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. |
A list mapping local file paths to the corresponding Foundry Dataset file.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.