create_dir: Create a directory

Description Usage Arguments Details Value

View source: R/create_dir.R

Description

Creates the directory if it does not exist.

Usage

1
2
3
4
5
6
7
create_dir(
  dir = paste0(getwd(), "/"),
  overwrite = FALSE,
  backup = TRUE,
  create = TRUE,
  ...
)

Arguments

dir

character. Folder name (with a trailing slash).

overwrite

logical.

backup

logical.

create

logical.

...

dots. Not currently used.

Details

Used by other functions in this package. Note that this function is probably more complex than it really should be. Re-factoring it should be considered.

Value

character. Filepath.


tonyelhabr/teproj documentation built on June 21, 2020, 12:56 p.m.