cctu_initialise: initialise objects for using cctu package

View source: R/cctu_initialise.R

cctu_initialiseR Documentation

initialise objects for using cctu package

Description

initialise objects for using cctu package

Usage

cctu_initialise(root = getwd(), scripts = FALSE, rm = FALSE)

cctu_initialize(root = getwd(), scripts = FALSE, rm = FALSE)

cctu_check_dir(root = getwd(), warnings = FALSE)

rm_output(
  root_output = "Output",
  core = TRUE,
  figures = TRUE,
  reports = TRUE,
  output = TRUE
)

Arguments

root

the root directory to start in

scripts

logical create the standard set of scripts. Intended to be used once interactively at the start of coding for an analysis.

rm

logical whether to also run rm_output with its default values, to delete all the files in the output directory.

warnings

logical indicator to issue warning if the directories do not exist. Default FALSE.

root_output

character giving the output directory path

core

logical delete the files in /Core

figures

logical delete the files /Figures

reports

logical delete the files in /Reports

output

logical delete top level files in

Value

cctu_initialise gives an invisible return of logical indicating if the directories have been created. The directories needed are "Output", and within "Output", "Core", "Figures", "Reports". It also runs reset_code_tree(root) automatically.

cctu_check_dir gives a logical indicating if the directories exist,

Functions

  • cctu_initialise(): create the standard directories for outputs if needed.

  • cctu_initialize(): identifical function with american spelling

  • cctu_check_dir(): Check if the directories exist for cctu

  • rm_output(): function to clear previous output files, but leaves the directories in place

See Also

dir.create reset_code_tree


shug0131/cctu documentation built on Nov. 10, 2023, 12:03 p.m.