rtip: Display an R tip

Description Usage Arguments Value

Description

Display an R tip

Usage

1
2
rtip(id, cowsay = TRUE, color = FALSE, excluded = c("deprecated",
  "Uncategorized"), keyword = NULL)

Arguments

id

numeric ID of tip to display. If not provided, display a randomly-selected tip.

cowsay

if TRUE, a random cowsay animal will present the tip

color

if TRUE, use a colorful cowsay display. Ignored if cowsay=FALSE

excluded

categories excluded for random tip selection

keyword

character vector keywords contained in tips to search for.

Value

the tip, as a 3-element vector (tip number and category; tip text; author and date)


revodavid/rlangtip documentation built on May 12, 2019, 4:13 p.m.