R/text_wrap.R

Defines functions text_wrap.default text_wrap

Documented in text_wrap text_wrap.default

#' wraping text to specified width
#'
#' @param string text to be wrapped
#' @param ... further arguments passed through to \link[base]{strwrap}
#' @seealso \link[base]{strwrap}
#' @export
text_wrap = function(string, ...){
  UseMethod("text_wrap")
}

#' text_wrap default
#' @rdname text_wrap
#' @method text_wrap default
#' @export
text_wrap.default = function(string, ...){
  strwrap(string)
}

Try the stringb package in your browser

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

stringb documentation built on Jan. 26, 2021, 1:07 a.m.