tardir | R Documentation |
Creates a tgz from all files in a directory
tardir(dir = ".", tarfile = "data.tgz")
dir |
directory from which the tar file should be generated |
tarfile |
name of the archive the data should be written to (tgz file) |
Jan Philipp Dietrich
# copy dummymodel to temporary directory and compress it
file.copy(system.file("dummymodel",package="gms"),tempdir(), recursive = TRUE)
model <- paste0(tempdir(),"/dummymodel")
archive <- paste0(tempdir(),"/dummymodel.tgz")
tardir(model,archive)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.