upload_files_to_run: Upload files to a run

Description Usage Arguments Value Examples See Also

View source: R/run.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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()


azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.