R/split_remotes.R

Defines functions split_remotes

Documented in split_remotes

#' @title Remotes Splitter
#' @description Wrapper for splitting and trimming on spaces
#'
#' @param x Character vector of inputs
#'
#' @return Character vector with multiple elements
#' @export
#'
#' @examples
#' split_remotes(c("stnava/ANTsR, blah/package@asdf"))
split_remotes <- function(x) {
  trimws(unlist(strsplit(x, ",[[:space:]]*")))
}
muschellij2/ghtravis documentation built on April 1, 2021, 5:22 p.m.