Learn R Programming

rmsfact (version 0.0.4)

rmsfact: Display a Random Fact about Richard M. Stallman

Description

Function to display a randomly chosen fact about Richard M. Stallman

Usage

rmsfact(ind)

# S3 method for rmsfact print(x, width = NULL, ...)

Value

A character vector containing one randomly selected line from the included file. It is of class rmsfact for which an S3 print method will be invoked.

Arguments

ind

Optional index of a quote, or character expression to be matched; if missing a random index value is sampled

x

Default object for print method

width

Optional column width parameter

...

Other optional arguments

Author

Dirk Eddelbuettel

Details

This function displays a randomly chosen line from the included data set of of random ‘facts’ about Richard M. Stallman. The function is a port of the GNU Octave function fact doing the same, and written by Jordi Gutiérrez Hermoso based on the (now defunct) site stallmanfacts.com.

See Also

fortune

Examples

Run this code
  set.seed(123)
  rmsfact()

Run the code above in your browser using DataLab