R/utilities.R

Defines functions message_wrap

# Copied from ggplot2:
# https://github.com/tidyverse/ggplot2/blob/master/R/utilities.r
message_wrap <- function(...) {
  msg <- paste(..., collapse = "", sep = "")
  wrapped <- strwrap(msg, width = getOption("width") - 2)
  message(paste0(wrapped, collapse = "\n"))
}

Try the moderndive package in your browser

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

moderndive documentation built on Dec. 2, 2022, 1:08 a.m.