R/wb_info_split.R

Defines functions wb_info_split

Documented in wb_info_split

#' wb_info_split
#'
#' @param x list of package dependencies
#'
#'
wb_info_split <-
  function(x){
    tryCatch(
      expr =
        {
          x <- unlist(strsplit(x, ",[ \n]*"))
          x <- gsub(x = x, pattern = " *\\(.*$", replacement = "")
        },
      error =
        function(e){
          x <- character(0)
        }
    )
    # return
    x
  }

Try the wayback package in your browser

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

wayback documentation built on Oct. 23, 2020, 5:47 p.m.