Skip to contents

This function removes directories containing data for the current scenario.

Usage

removeDirectories(
  dirNames = c("ReplicateData", "MicroEvaluation", "MacroEvaluation"),
  workingPath = getwd(),
  method = getEctdDataMethod()
)

Arguments

dirNames

(Optional) A vector of directories to remove from the "workingPath" directory. Default is to remove "ReplicateData", "MicroEvaluation" and "MacroEvaluation" directories

workingPath

(Optional) The working directory from which to remove the directories. By default, directories are removed from the current working directory

method

Data storage method (given by getEctdDataMethod by default)

Value

A logical vector the same length as the dirNames, indicating whether or not the corresponding directories were successfully removed

Details

dirNames must be a character vector. The function will attempt to remove each of the directories identified in the dirNames vector from within the "workingPath" directory If method is "Internal", the DataStore is emptied and no directories are modified

Author

Francisco Gochez

Examples


  if (FALSE) {
    createDirectories(dirNames = c("ReplicateData", "MicroEvaluation"))
    removeDirectories(dirNames = c("ReplicateData", "MicroEvaluation"))
  }