R/symbols.R

Defines functions warning_symbol fail_symbol ok_symbol

ok_symbol <- function(fmt="undef") {
  if (is.null(fmt)) fmt<-"undef"
  if (fmt=="html")
    return("\u2705")
  else
    return("OK ")
}

fail_symbol <- function(fmt="undef") {
  if (is.null(fmt)) fmt<-"undef"
  if (fmt=="html")
    return("\u274C")
  else
    return("[x] ")
}

warning_symbol <- function(fmt="undef") {
  if (is.null(fmt)) fmt<-"undef"
  if (fmt=="html")
    return("&#9888;")
  else
    return("/!\\")
}

Try the reproducibleRchunks package in your browser

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

reproducibleRchunks documentation built on Aug. 8, 2025, 6:38 p.m.