R/formatCli.R

Defines functions formatCli

Documented in formatCli

#' Subsitute spaces and special characters with the backslash for a CLI command
#' @export

formatCli <-
        function(vector) {
               x <- gsub(" ", "\\ ", vector, fixed = TRUE)
               x <- gsub("(", "\\(", x, fixed = TRUE)
               x <- gsub(")", "\\)", x, fixed = TRUE)
               x
        }
patelm9/glitter documentation built on Sept. 21, 2020, 5:42 p.m.