tardir: Creative tgz archive from directory

Description Usage Arguments Author(s) Examples

View source: R/tardir.R

Description

Creates a tgz from all files in a directory

Usage

1
tardir(dir = ".", tarfile = "data.tgz")

Arguments

dir

directory from which the tar file should be generated

tarfile

name of the archive the data should be written to (tgz file)

Author(s)

Jan Philipp Dietrich

Examples

1
2
3
4
5
# 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)

gms documentation built on July 2, 2020, 2:36 a.m.

Related to tardir in gms...