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.
upload_files_to_run(names, paths, timeout_seconds = NULL, run = NULL)
A character vector of the names of the files to upload.
A character vector of relative local paths to the files to be upload.
An int of the timeout in seconds for uploading the files.
The Run
object.
None
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")
upload_folder_to_run()
download_file_from_run()
download_files_from_run()