eraseDirectory: Erase all files in a directory

Description Usage Arguments Examples

View source: R/MGDrivE-Auxiliary.R

Description

Given a directory path, check that it exists, and if so, delete all its contents.

Usage

1
eraseDirectory(directory, verbose = TRUE)

Arguments

directory

Directory whose contents will be deleted

verbose

Chatty? Default is TRUE

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Path to directory, can tilde expand
myPath <- "~/path/to/write/output"

# Erase directory
#  No return value
eraseDirectory(directory = myPath)

## End(Not run)

MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.