createDirectories: Create replicate data, micro evaluation, and macro evaluation...

Description Usage Arguments Details Value Author(s) Examples

View source: R/createDirectories.r

Description

This function creates directories for holding data for the current scenario. These directories will hold the replicate data, the micro evaluation data and the macro evaluation data.

Usage

1
2
3
4
createDirectories(dirNames = c("ReplicateData", "MicroEvaluation", "MacroEvaluation"), 
  workingPath = getwd(), 
	warn = FALSE, 
  method = getEctdDataMethod())

Arguments

dirNames

(Optional) A vector of directories to create under the "workingPath" directory. By default, directories "ReplicateData", "MicroEvaluation" and "MacroEvaluation" are created

workingPath

(Optional) The working directory in which to create directories. The current working directory is used by default

warn

(Optional) A logical value. Should warnings from the directory creation be shown? FALSE by default

method

Data storage method (given by getEctdDataMethod by default)

Details

Attempts to create directories named in character vector "dirNames" within the "workingPath" directory. No action is taken if method is "Internal"

Value

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

Author(s)

Mike K Smith mstoolkit@googlemail.com

Examples

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

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