decompress7z: Decompress a 7z file in its directory

Description Usage Arguments Value

View source: R/readcomext.R

Description

Overwrite by default, meaning the 7zr switch is set to -y "Assume Yes on all queries" because there cannot be interaction with the user.

Usage

1
2
3
4
5
decompress7z(
  file7z,
  stdout = FALSE,
  logfile = file.path("~/log", "harvesterrorlog.txt")
)

Arguments

file7z

a 7z file to be decompressed

stdout

redirects standard output of the 7zr command, argument passed to system2. defaults to FALSE (discard output)

logfile

path to a log file, located in the user directory by default

Value

Invisibly returns a character vector of the filepaths extracted to (same behaviour as unzip) return NULL if there is an error (the error is then logged to a file)


stix-global/eutradeflows documentation built on Nov. 13, 2020, 9:23 p.m.