knitr::opts_chunk$set(collapse=TRUE, fig.retina=2, message=FALSE, warning=FALSE) options(width=120)
Return Random Star Wars Quotes
Now you can use the R 'Force' to get random quotes from your favorite space opera. This is a thin wrapper to the 'Star Wars Quote API' (http://swquotesapi.digitaljedi.dk/index.html).
The following functions are implemented:
quote_console
: Get a random Star Wars quote and display it stylishly to the consoledevtools::install_git("https://gitlab.com/hrbrmstr/forcequotes.git") # or devtools::install_github("hrbrmstr/forcequotes")
library(forcequotes) # current version packageVersion("forcequotes")
random_quote() random_quote(faction=0) random_quote(faction=1) random_quote(faction=2) random_quote(faction=3) random_quote(faction=4)
quote_console()
cloc::cloc_pkg_md()
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.