unzip.gt3x {read.gt3x} | R Documentation |
Unzip gt3x files
Description
unzip.gt3x() makes it convenient to unzip multiple .gt3x files.
Usage
unzip.gt3x(path, verbose = TRUE, ...)
Arguments
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 |
Details
A .gt3x file is a zipped directory with two files: log.bin and info.txt. This function simply unzips the contents of the directories.
Value
Returns a vector of paths to unzipped gt3x folders.
See Also
Other file manipulations:
gt3x_datapath()
,
is_gt3x()
,
list_gt3x()
Examples
gt3xfile <-
system.file(
"extdata", "TAS1H30182785_2019-09-17.gt3x",
package = "read.gt3x")
gt3xdirs <- unzip.gt3x(gt3xfile)
## Not run:
# unzip a single .gt3x file
path <- gt3x_datapath(1)
gt3xdir <- unzip.gt3x(path)
# unzip multiple .gt3x files
dir <- gt3x_datapath()
gt3xdirs <- unzip.gt3x(dir)
## End(Not run)
tfile = tempfile()
testthat::expect_error(unzip.gt3x(c(dir, tfile)))
testthat::expect_error(unzip.gt3x(c("", "")))
[Package read.gt3x version 1.2.0 Index]