removeDirectories: Remove directories

Description Usage Arguments Details Value Author(s) Examples

View source: R/removeDirectories.r

Description

This function removes directories containing data for the current scenario.

Usage

1
2
3
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)

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

Value

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

Author(s)

Mike K Smith mstoolkit@googlemail.com

Examples

1
2
3
4
5
  ## Not run: 
    createDirectories(dirNames = c("ReplicateData", "MicroEvaluation"))
    removeDirectories(dirNames = c("ReplicateData", "MicroEvaluation"))
  
## End(Not run)

MSToolkit documentation built on May 2, 2019, 6:30 p.m.