say()
say("what")
say("time")
say("who you callin chicken", "chicken")
say("ain't that some shit", "poop")
say("icanhazpdf?", "cat")
say("boo!", "pumpkin")
say("hot diggity", "frog")
# Vary type of output, default calls message()
say("hell no!")
say("hell no!", type = "warning")
say("hell no!", type = "string")
# The hypnotoad
say(by = "hypnotoad")
# Trilobite
say(by = "trilobite")
# Shark
say("Q: What do you call a solitary shark\nA: A lone shark", by = "shark")
# Buffalo
say("Q: What do you call a single buffalo?\nA: A buffalonely", by = "buffalo")
if (FALSE) { # rlang::is_installed("fortunes")
# Using fortunes
library(fortunes)
say(what = "fortune")
## you don't have to pass anything to the `what` parameter if `fortune` is
## not null
say("fortune", "spider")
say("fortune", "facecat")
say("fortune", "behindcat")
say("fortune", "smallcat")
say("fortune", "monkey")
say("fortune", "egret")
say(fortune = 10)
say(fortune = 100)
say(fortune = "whatever")
say(fortune = 7)
say(fortune = 45)
# Clippy
say(fortune = 59, by = "clippy")
}
if (FALSE) { # rlang::is_installed("rmsfact")
library(rmsfact)
say("rms", "rms")
}
# Using the catfacts API
library(jsonlite)
say("catfact", "cat")
Run the code above in your browser using DataLab