R/create_error_text.R

Defines functions create_error_text

# Function to create error text (so consistent spacing)
create_error_text <- function(..., n_pad = 10){

  # put everything together
  x   <- c(...)

  # add padding
  pad <- paste0(rep(" ", n_pad), collapse = "")
  x   <- paste0(pad, x, "\n")

  # add new lines at beginning and end and cat everything together
  cat(c("\n", x, "\n"))
}

Try the sentiment.ai package in your browser

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

sentiment.ai documentation built on March 19, 2022, 2:15 a.m.