unzip.gt3x.Rd
unzip.gt3x() makes it convenient to unzip multiple .gt3x files.
unzip.gt3x(path, verbose = TRUE, ...)
path | One of the following: (1) A path to a directory with .gt3x files in which case they are all unzipped, or (2) A character vector of direct paths to .gt3x files. |
---|---|
verbose | print diagnostic messages |
... | arguments to pass to |
Returns a vector of paths to unzipped gt3x folders.
A .gt3x file is a zipped directory with two files: log.bin and info.txt. This function simply unzips the contents of the directories.
Other file manipulations:
gt3x_datapath()
,
is_gt3x()
,
list_gt3x()
gt3xfile <- system.file( "extdata", "TAS1H30182785_2019-09-17.gt3x", package = "read.gt3x") gt3xdirs <- unzip.gt3x(gt3xfile)#>#>#>#>if (FALSE) { # unzip a single .gt3x file path <- gt3x_datapath(1) gt3xdir <- unzip.gt3x(path) # unzip multiple .gt3x files dir <- gt3x_datapath() gt3xdirs <- unzip.gt3x(dir) } tfile = tempfile() testthat::expect_error(unzip.gt3x(c(dir, tfile))) testthat::expect_error(unzip.gt3x(c("", "")))