Skip to content
Prints a random quote from Marcus Aurelius' book Meditations
R Rebol
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data-raw
data
docs
inst
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
README.Rmd
README.md
appveyor.yml
cran-comments.md
meditations.Rproj

README.md

CRAN_Status_Badge Travis-CI Build Status AppVeyor Build Status Coverage status

Overview

View the wisdom of Marcus Aurelius through his quotes from his book Meditations.

Installation

You can install meditations from github with:

# install.packages("devtools")
devtools::install_github("jacobkap/meditations")

Example

This is how to use this simple package. meditations() will print a random quote from the book.

meditations::meditations()
## [1] "The body ought to be compact, and to show no irregularity either in motion or attitude. For what the mind shows in the face by maintaining in it the expression of intelligence and propriety, that ought to be required also in the whole body. But all of these things should be observed without affectation."

Choose a number between 1 and 507 (there are only 507 quotes) and it will print that specific quote(s).

meditations::meditations(5)
## [1] "From my governor, to be neither of the green nor of the blue party at the games in the Circus, nor a partizan either of the Parmularius or the Scutarius at the gladiators' fights; from him too I learned endurance of labour, and to want little, and to work with my own hands, and not to meddle with other people's affairs, and not to be ready to listen to slander."

You can get the vector of all 507 quotes by

data("meditations_quotes")
You can’t perform that action at this time.