rmsfact: Display a Random Fact about Richard M. Stallman

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rmsfact.R

Description

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

Usage

1
2
3
4
rmsfact(ind)

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

Arguments

ind

Optional index of a quote; if missing a random value is sampled

x

Default object for print method

width

Optional column width parameter

...

Other optional arguments

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<c3><a9>rrez Hermoso based on the (now defunct) site stallmanfacts.com.

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.

Author(s)

Dirk Eddelbuettel

See Also

fortune

Examples

1
2
  set.seed(123)
  rmsfact()

Example output

Richard Stallman can see Russia from his house. 

rmsfact documentation built on May 2, 2019, 2:27 p.m.