R/folderCreator.R

Defines functions createFolder

Documented in createFolder

#' Folder creator
#'
#' This function create a folder in project path
#'
#' @return String
#' @export

# https://stackoverflow.com/questions/4216753/check-existence-of-directory-and-create-if-doesnt-exist
# We need results directory and if exist warning false

createFolder <- function(){
  documentsBase <- tools::R_user_dir("tsentiment")
  path = paste(documentsBase,"/","results","/",sep = "")
  dir.create(file.path(path), recursive = TRUE, showWarnings = FALSE)
  return(path)
}

Try the tsentiment package in your browser

Any scripts or data that you put into this service are public.

tsentiment documentation built on Nov. 3, 2022, 1:06 a.m.