removeDataPath: Deletes a root data path all sub-directories

Description Usage Arguments Value Examples

View source: R/datapath.R

Description

Deletes a root data path and all sub-directories. It can be the current directory or a previously used data path. It will only delete if it has the default folder structure of a root data path.

Usage

1
2
3
4
removeDataPath(
  dataPath = file.path(getNlDataPath(), ".Rnightlights"),
  confirm = FALSE
)

Arguments

dataPath

character The path to the root folder to be deleted

confirm

logical Used when in non-interactive mode. If missing or FALSE the operation will be aborted.

Value

None

Examples

1
2
3
4
  ## Not run: 
  Rnightlights:::removeDataPath(getNlDataPath())
  
## End(Not run)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.