Skip to contents

`zipStudyFiles()` compress study results

Usage

zipStudyFiles(resultsDirName, outputDir, dbname)

Arguments

resultsDirName

Location of the results. Character.

outputDir

The directory where the results folder is located. Character

dbname

The database name. Character

Value

A message stating the location of the compressed results

Examples

outputDir <- file.path(
   tempdir(),
   "examples"
   )
dbname <- "IPCI"
directories <- createResultsDir(
  outputDir,
  dbname = dbname
)
#>  Creating locations to save results
zipStudyFiles(
  resultsDirName = directories$resultsDir,
  outputDir = directories$outputDir,
  dbname = dbname
)
#>  Exporting results to zip format
#>  Results exported to /tmp/RtmpinBBgy/examples/results_IPCI/results_IPCI_20260607.zip
unlink(outputDir, recursive = TRUE)