extract_archive | R Documentation |
Extract contents of an archive to a directory. Requires that the archive package is available.
extract_archive(file, destdir = tempdir())
file |
'character' string. File path to the archive. |
destdir |
'character' string. Destination directory to extract files to. It will be created if necessary. Defaults to the temporary directory. |
Invisibly returns the extracted path(s).
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
files <- system.file("extdata", "test.zip", package = "inldata") |>
extract_archive()
unlink(files)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.