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

View source: R/createDirectories.r

createDirectoriesR Documentation

Create replicate data, micro evaluation, and macro evaluation directories

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

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). MSToolkit can work with externalised data (as .csv or .RData files) or internal data format, where the replicate data is stored as a list of data frames in an internal environment (.ectdEnv$DataStore)

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)

Francisco Gochez

Examples


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


MikeKSmith/MSToolkit documentation built on Feb. 15, 2024, 5:32 p.m.