| pack_directory | R Documentation |
Create a zipped or tarred and gzipped archive of a directory
pack_directory(directory, fmt = c("tgz", "zip")[1],
outfile = file.path(dirname(directory), paste0(basename(directory), c(tgz =
".tar.gz", zip = ".zip")[fmt])))
directory |
one or more directories to pack. NOTE they are not packed together. |
fmt |
character, indicates output format. Currently just 'tgz' and 'zip' |
outfile |
the full qualified name(s) of the output archive(s) |
named logical indicating the outfile exists (or not!)
Other COMPRESSED: is_bzip2,
is_gzip, is_tgz,
is_zip, test_compressed,
un_bzip2, un_gz,
un_tgz, un_zip,
unpack_archive
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.