decompress.gz: Decompress files with ".gz" extension, append ".log"...

Description Usage Arguments Details Value

View source: R/compress.logs.R

Description

Decompress files with ".gz" extension, append ".log" extension and optinally remove the .gz files, which may be necessay if reports need to be created

Usage

1
2
3
4
5
6
7
8
decompress.gz(
  path.results = NULL,
  scenarios = "all",
  delete.gz = TRUE,
  overwrite.log = TRUE,
  parallel = FALSE,
  ncores = NULL
)

Arguments

path.results

The path to the 'Results' folder

scenarios

A character vector with the scenarios to be processed or "all"

delete.gz

whether the .gz file should be deleted after decompression

overwrite.log

if a .log file with the same name is present, should it be overwritten?

parallel

whether execute the function in parallel

ncores

the number of cores if executed in parallel

Details

Note that it makes sense to execute this function in parallel only if a solid state disk (SSD) is available

Value

a list where the first element is the list of gz files found and the second is the log files created


carlopacioni/HexSimR documentation built on Nov. 28, 2020, 4:12 p.m.