R/create_required_directory.R

Defines functions create_required_directory

#' Create Required Directory
#'
#' Creates a directory if it does not already exist.
#'
#' This function checks if the specified directory exists. If not, it creates
#' the directory recursively.
#'
#' @param folder A character string specifying the directory path to create.
#' @keywords internal
#'
#' @return NULL
#' @noRd

create_required_directory <- function(folder) {
  if (!dir.exists(folder)) {
    dir.create(folder, recursive = TRUE)
  }
}

Try the PytrendsLongitudinalR package in your browser

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

PytrendsLongitudinalR documentation built on Sept. 17, 2024, 5:08 p.m.