From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 22,700 courses taught by industry experts.

cowsay

cowsay

- [Narrator] The R programmer community has quite a sense of humor. And as a result, cowsay has appeared as part of the base package. Cowsay is a funny thing. Let's take a look at it. The first thing you'll need to do is install it. So we use install packages. The next thing you'll need to do is call cowsay into the library. And now it's available for use. To use cowsay just type in say, what you'd like to say, for example, the "Why so serious", and then the animal you'd like to have speak, so by equals, let's start with a cow, C-O-W, and I hit return, and I have a cow saying, Why so serious. There are a lot of different animals you can use to present your comments. And to find out what the names of those are you can use names of animals, and that will list all of the animals available for cowsay. Now there's something to be learned from cowsay. If you would like to look at some of the internals, and I'll show you why here in a second, just type in say without the parentheses and an r…

Contents