Learn R Programming

azuremlsdk (version 1.10.0)

upload_files_to_run: Upload files to a run

Description

Upload files to the run record.

Note: Runs automatically capture files in the specified output directory, which defaults to "./outputs". Use upload_files_to_run() only when additional files need to be uploaded or an output directory is not specified.

Usage

upload_files_to_run(names, paths, timeout_seconds = NULL, run = NULL)

Arguments

names

A character vector of the names of the files to upload.

paths

A character vector of relative local paths to the files to be upload.

timeout_seconds

An int of the timeout in seconds for uploading the files.

run

The Run object.

Value

None

Examples

ws <- load_workspace_from_config()
exp <- experiment(ws, name = 'myexperiment')

# Start an interactive logging run run <- start_logging_run(exp)

# Upload files to the run record filename1 <- "important_file_1" filename2 <- "important_file_2" upload_files_to_run(names = c(filename1, filename2), paths = c("path/on/disk/file_1.txt", "other/path/on/disk/file_2.txt"))

# Download a file from the run record download_file_from_run(filename1, "file_1.txt")

See Also

upload_folder_to_run() download_file_from_run() download_files_from_run()