scratch_dir: Set the scratch directory for vmeasur
Description
vmeasur uses av to unpack temporary image files, which are then stored for
further usage. This runs better if done to a high speed storage location such
as a ram drive. This function sets that directory, and provides other options
for specifying the structure of this temporary data.
Usage
scratch_dir(
set = NULL,
random_subfolder = FALSE,
file_name = FALSE,
wipe_scratch = FALSE
)
Arguments
set
new directory to set. If left blank, no directory change will occur
random_subfolder
Should a random sub folder be created
file_name
Specify the name of the directory
wipe_scratch
Should the folder be cleared before use
Value
the current location of the scratch directory
Details
If not specified, the default R tempdir is used
Examples
Run this code# NOT RUN {
scratch_dir()
scratch_dir("R:")
# }
Run the code above in your browser using DataLab