Skip to content

achazhardenberg/cowsay

 
 

Repository files navigation

cowsay

Build Status Build status

What is this?

If you are familiar with cowsay on the cli, then you know what this is, but for R. If not, read below. Why? Why not?

Contributors

  • Scott Chamberlain
  • Tyler Rinker
  • Thomas Leeper
  • Noam Ross
  • Rich FitzJohn
  • Kiyoko Gotanda

That's right, it takes 6 people to make cowsay - it's that hard.

Dependencies:

  • fortunes
  • RJSONIO

Quick watch start

Asciicast: https://asciinema.org/a/7745

Quick start

install.packages("devtools")
devtools::install_github("sckott/cowsay")
library("cowsay")
say('time')
## 
##  -------------- 
## 2014-09-18 08:16:15 
##  --------------
##     \
##       \
##         \
##             |\___/|
##           ==) ^Y^ (==
##             \  ^  /
##              )=*=(
##             /     \
##             |     |
##            /| | | |\
##            \| | |_|/\
##       jgs  //_// ___/
##                \_)
## 
say("ain't that some shit", "chicken")
## 
## 
##  ----- 
##  ain't that some shit 
##  ------ 
##     \   
##      \
##          _
##        _/ }
##       `>' \
##       `|   \
##        |   /'-.     .-.
##         \'     ';`--' .'
##          \'.    `'-./
##           '.`-..-;`
##             `;-..'
##             _| _|
##             /` /`
## 
say("boo!", "ghost")
## 
## 
##  ----- 
##  boo! 
##  ------ 
##     \   
##      \
##      .-.
##     (o o)
##     | O \
##      \   \
##       `~~~'
## 

Vary type of output, default calls message()

say("hell no!")
## 
##  -------------- 
## hell no! 
##  --------------
##     \
##       \
##         \
##             |\___/|
##           ==) ^Y^ (==
##             \  ^  /
##              )=*=(
##             /     \
##             |     |
##            /| | | |\
##            \| | |_|/\
##       jgs  //_// ___/
##                \_)
## 
say("hell no!", type="warning")
## Warning: 
##  -------------- 
## hell no! 
##  --------------
##     \
##       \
##         \
##             |\___/|
##           ==) ^Y^ (==
##             \  ^  /
##              )=*=(
##             /     \
##             |     |
##            /| | | |\
##            \| | |_|/\
##       jgs  //_// ___/
##                \_)
## 
say("hell no!", type="string")
## [1] "\n -------------- \nhell no! \n --------------\n    \\\n      \\\n        \\\n            |\\___/|\n          ==) ^Y^ (==\n            \\  ^  /\n             )=*=(\n            /     \\\n            |     |\n           /| | | |\\\n           \\| | |_|/\\\n      jgs  //_// ___/\n               \\_)\n  "

Catfacts!!!!

From the catfacts API

say("catfact", "cat")
## 
##  -------------- 
## Tylenol and chocolate are both poisionous to cats. 
##  --------------
##     \
##       \
##         \
##             |\___/|
##           ==) ^Y^ (==
##             \  ^  /
##              )=*=(
##             /     \
##             |     |
##            /| | | |\
##            \| | |_|/\
##       jgs  //_// ___/
##                \_)
## 

Random quote

From the iheartquotes API

say("iheart", "chicken")
## 
## 
##  ----- 
##  I do not know myself and God forbid that I should.-- Johann Wolfgang von Goethe 
##  ------ 
##     \   
##      \
##          _
##        _/ }
##       `>' \
##       `|   \
##        |   /'-.     .-.
##         \'     ';`--' .'
##          \'.    `'-./
##           '.`-..-;`
##             `;-..'
##             _| _|
##             /` /`
## 

Long cat

From the a Boing Boing tweet on 2014-05-10

say("it's caturday", "longcat")
## 
## 
##  ----- 
##  it's caturday 
##  ------ 
##     \   
##      \
##     .ハ,,ハ
##     ( ゚ω゚)
##     |つ  つ
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     |    |
##     U " U
## 

Bunny Holding a sign

say(by='signbunny')
## 
##  -------------- 
## Hello world! 
##  --------------
## (\__/) ||
## (•ㅅ•) ||
## /   づ
## 

Fish

say(by='fish')
## 
## 
##  ----- 
##  Hello world! 
##  ------ 
##     \   
##      \
##   ><((((º>  ><((((º>  ><((((º>  ><((((º>  ><((((º>
## 

R fortunes

say('fortune','cat')
## 
##  -------------- 
## If 'fools rush in where angels fear to tread', then Bayesians 'jump' in where frequentists fear to 'step'.
##  Charles C. Berry
##  about Bayesian model selection as an alternative to stepwise regression
##  R-help
##  November 2009 
##  --------------
##     \
##       \
##         \
##             |\___/|
##           ==) ^Y^ (==
##             \  ^  /
##              )=*=(
##             /     \
##             |     |
##            /| | | |\
##            \| | |_|/\
##       jgs  //_// ___/
##                \_)
## 

About

cowsay w/ more animals in R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published