UnzipBreathID: Unpacks a BreathID zip-File

Description Usage Arguments Value Author(s)

View source: R/UnzipBreathID.R

Description

Retrieves BreathID records from a zipped file, and copies these to a target directory.

Usage

1
2
UnzipBreathID(zipPath, destinationPath, lastZipFile = NULL,
  lastZipDate = NULL, inZipPath = "txt/")

Arguments

zipPath

path to the zip file; the name of the zip file is optional. For security, nothing is read when more than one zip file is found in the directory. When a full path to a file is given and lastReadDate != NULL, the file is skipped if the its modification date is earlier.

destinationPath

directory where to store the unpacked file

lastZipFile

file name without path of last zip file; if NULL, not checked

lastZipDate

modification date of last zip read; if NULL; not checked

inZipPath

partial string where to find the files in the zip directory tree. For example, if the path is temp/BreathID/Results/txt/, inzipPath="txt/" is sufficient.

Value

A list with number of files n, type=c("error","info","ok"), and message string msg. If ok, also vector of files that were extracted, the name of the lastZipFile, and the modification date lastZipDate.

Author(s)

Dieter Menne, dieter.menne@menne-biomed.de


dmenne/d13cbreath documentation built on March 1, 2020, 3:41 a.m.