R/utils.R

Defines functions clean_path_name

Documented in clean_path_name

#' @title clean_path_name helper function
#'
#' @description Internal function to clean paths to have a
#'   tailing slash
#'
#' @param pathname A character string. A pathname to be
#'   cleaned (to have a tailing slash).
#'
#' @export
#'
clean_path_name <- function(pathname) {
  return(gsub("([[:alnum:]])$", "\\1/", pathname))
}
miracum/clearly-sigident.preproc documentation built on June 28, 2022, 3:17 p.m.