Description Usage Arguments Details Value Note Examples
This function extract files from a .rar
file
1 2 3 4 5 6 |
file |
a file path to a |
dest_dir |
path to extract files. Defaults to |
overwrite |
logical, use |
quiet |
Hide printed output, messages, warnings, and errors (TRUE, the default), or display them as they occur? |
This function has the side effect of extract files in a
directory named (dest_dir/basename(file)
) when dest_dir
is not NULL
.
character vector with files path
This function is a wrapper to call unrar
command. It is required you
have unrar
Linux library installed. You can install it with
apt install unrar
.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
if (interactive()) {
rarfile_url <- "https://ndownloader.figshare.com/files/13366451"
dest_file <- file.path(tempdir(), paste0(basename(rarfile_url), ".rar"))
#dest_file <- tempfile(fileext = ".rar")
download.file(rarfile_url, dest_file, mode = "wb")
extracted_files <- unrar(dest_file)
extracted_files
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.