OpenRAR: Open encrypted .RAR files

Description Usage Arguments Details Value

Description

Open encrypted .RAR files

Usage

1
2
3
OpenRAR(pathRAR, pathRARexe = "C:/Program Files/Winrar",
  pathExtract = paste0(getwd(), "/tmp"), pw = c(T, F), RmFiles = T,
  RmTime = "00:30:00", pathRscript = getwd())

Arguments

pathRAR

The path to the encrypted .rar file. For example, "C:/Users/u007/Documents/MyNameisRAR_WinRAR.rar".

pathRARexe

Path where the WinRAR executable is located. Default is "C:/Program Files/Winrar".

pathExtract

Path where the files have to be extracted to. This folder and all its files will be deleted if RmFiles = T.

pw

Logical, indicates whether the .rar file is password protected. If TRUE, the user will be prompted to give the password.

RmFiles

Logical, indicates whether the extracted files have to be deleted.

RmTime

The time until removal of the extracted files.

pathRscript

The path where the temporary Rscript has to be saved.

Details

The extracted files and temporary folder will automatically deleted after the specified time period IF AND ONLY IF the windows command window is not closed. In addition, there will be some additional temporary files left that were created to execute the command (an R-script and a .bat file). These can be removed by using the function RmRemainingFiles.

Value

The extracted files will be saved in pathExtract folder and if specified, removed after a certain time.


BavoDC/RcryptAdj documentation built on May 16, 2019, 11:01 a.m.