R/make_folder_function.R

Defines functions make_folder

Documented in make_folder

#' Make Folder
#'
#' @description Make a folder only if the folder does not already exist
#' @param path folder path
#' @keywords helper
#' @export

make_folder <- function(path) {
    invisible(ifelse(!dir.exists(file.path(path)), dir.create(file.path(path)), FALSE))
}
tydarnell/GeneticMediation documentation built on May 17, 2020, 2:33 a.m.