R/source_helpers.R

Defines functions source_helpers

Documented in source_helpers

#' Source helper functions
#'
#' Quickly source all of the files in a directory called 'helpers'. The
#' 'helpers' directory should be a top level directory inside the project
#' directory.
#'
#'
#' @return
#' @export
#'
#' @examples
#' source_helpers()
source_helpers <- function() {
  purrr::walk(
    fs::dir_ls(
      here::here("helpers")
      ), source
    )
}
averyrobbins1/sometools documentation built on Feb. 18, 2021, 5:08 p.m.