Learn R Programming

torchaudio (version 0.1.1.0)

extract_archive: Extract Archive

Description

Extract Archive

Usage

extract_archive(from_path, to_path = NULL, overwrite = FALSE)

Arguments

from_path

(str): the path of the archive.

to_path

(str, optional): the root path of the extraced files (directory of from_path) (Default: NULL)

overwrite

(bool, optional): overwrite existing files (Default: FALSE)

Value

list: List of paths to extracted files even if not overwritten.

Examples

Run this code
# NOT RUN {
if(torch::torch_is_installed()) {
url = 'http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/validation.tar.gz'
from_path = './validation.tar.gz'
to_path = './'
utils::download.file(url = url, destfile = from_path)
torchaudio::extract_archive (from_path, to_path)
}

# }

Run the code above in your browser using DataLab