dir.check.add: A function to check for a directory and add if it doesn't...

Description Usage Arguments Value Examples

View source: R/dir.check.add.r

Description

Used in several functions before saving output. Ensures that the code doesn't fail by making sure the directory exists.

Usage

1
dir.check.add(Dir.main = getwd(), Dir.sub)

Arguments

Dir.main

Main/root directory; default is getwd()

Dir.sub

sub directory to check for and add if necessary.

Value

Nothing to return

Examples

1
2
3
Dir.main <- getwd()
Dir.sub <- "output"
dir.check.add(Dir.main, Dir.sub)

leppott/InvertExtirp documentation built on Nov. 8, 2019, 5:58 p.m.