cowsay

cowsay w/ more animals, in R

https://github.com/sckott/cowsay

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 28 committers (10.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

ascii-art r r-stats rstats

Keywords from Contributors

exploratory-data-analysis
Last synced: 9 months ago · JSON representation

Repository

cowsay w/ more animals, in R

Basic Info
Statistics
  • Stars: 339
  • Watchers: 10
  • Forks: 53
  • Open Issues: 3
  • Releases: 9
Topics
ascii-art r r-stats rstats
Created over 12 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct Codemeta

README.Rmd

cowsay
======

```{r echo=FALSE}
knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE
)
```

![cran checks](https://badges.cranchecks.info/worst/cowsay.svg)
[![R-check](https://github.com/sckott/cowsay/workflows/R-check/badge.svg)](https://github.com/sckott/cowsay/actions?query=workflow%3AR-check)
[![codecov](https://codecov.io/gh/sckott/cowsay/graph/badge.svg?token=fewxwGHXfv)](https://app.codecov.io/gh/sckott/cowsay)
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/cowsay)](https://github.com/r-hub/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/cowsay)](https://cran.r-project.org/package=cowsay)

### 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?

### History

cowsay was originally written by Tony Monroe, with the first code released in 1999. The version of cowsay you get via homebrew is a fork by Andrew Janke at  ([code repo](https://github.com/cowsay-org/cowsay)). The code for the original can be found at [tnalpgge/rank-amateur-cowsay](https://github.com/tnalpgge/rank-amateur-cowsay) and the original website can be seen [on the Wayback Machine](https://web.archive.org/web/20120225123719/http://www.nog.net/~tony/warez/cowsay.shtml). Both the original and version by Janke are both written in Perl. The cowsay you get with `apt` on Linux machines is the last version Monroe released in 2016 (v3.0.4 or possibly v3.0.3). 

This R package has some additional features the orginal cowsay doesn't have, but also lacks some features the original has. This package doesn't yet support custom eyes and tongue for the cow or any other animals.

### Contributors (alphabetical)

```{r echo=FALSE}
peeps <- c(
  "Scott Chamberlain",
  "Tyler Rinker",
  "Thomas Leeper",
  "Noam Ross",
  "Rich FitzJohn",
  "Kiyoko Gotanda",
  "Carson Sievert",
  "Andy Teucher",
  "Karl Broman",
  "Franz-Sebastian Krah",
  "Lucy D'Agostino McGowan",
  "Guangchuang Yu",
  "Paolo Sonego",
  "Philipp Boersch-Supan",
  "Andreas Brandmaier",
  "Amanda Dobbyn",
  "Marion Louveaux",
  "David Schoch"
)
```

```{r results='asis', echo=FALSE}
cat(c("", sort(peeps)), sep = "\n * ")
```

That's right, it takes `r length(peeps)` people to make `cowsay` - it's that hard.

### Contributing

See [CONTRIBUTING.md][contrib]

### Where to find ASCII animal art

Sources to look in:

* https://asciiart.website/ - again, this person only collects them - no mention of license, permissions, etc.

Permissions

In the ascii art mailing list https://groups.google.com/forum/#!forum/alt.ascii-art they say:

```
 As for posting other people's ASCII art,
    after a discussion in news:alt.ascii-art       _     ___
    the following rules were agreed upon:         #_~`--'__ `===-,
    1.  If an ASCII ART picture has initials      `.`.     `#.,//
        on it, leave them on when posting it      ,_\_\     ## #\
    2.  If an ASCII ART picture doesn't have      `__.__    `####\
        initials on it,  mention  that  you            ~~\ ,###'~
        didn't  draw  it  when  posting  it.              \##'
    3.  If somebody  posts a picture without                  [nosig]
        initials and you have an original copy
        with initials on, feel free to re-post the original version.
        *   The re-post ought not to be taken personally, as we all
            know that ASCII art often loses proper credits.
            Responses to the re-post are not necessary.

    One contributor, name of Krogg, suggested the following:

    1.) Ultra polite:...ya make yer own ascii and use it.
    2.)  Very polite:...Ya contact the author and ask if ya
                        can use it...
    3.)       polite:...Ya use it but you keep the Credits
                        in there like they should be.
    4.)         rude:...Ya use it and strip credits.
    5.)    Very rude:...Ya use it and claim that it Is
                        _Your_ very own creation...
```

So, let's go with this rule: Let's include found (on the web) ascii art in this pkg, include signature if there, and if no signature, put in a `[nosig]` (see above).

### Quick watch start

Asciicast: 

### Install

From CRAN

```{r eval=FALSE}
# install.packages("pak")
pak::pak("cowsay")
```

Dev version

```{r eval=FALSE}
# install.packages("pak")
pak::pak("sckott/cowsay")
```

```{r}
library("cowsay")
```

### The animals

```{r}
sort(animals)
```

### Say Something

```{r}
say("time")
```

```{r}
say("ain't that some shit", "chicken")
```

Add some color: 

```{r}
library(crayon)
```


```{r eval=FALSE}
say("boo!", "ghost",
  what_color = "cyan", by_color = "saddlebrown"
)
```


ghost

```{r eval=FALSE} say("I love hooo you are!", "owl", what_color = rgb(0, 1, 1), by_color = "#FF0000" ) ```

owl

String styles together [crayon-style](https://github.com/r-lib/crayon#styles): ```{r eval=FALSE} say( what = "rms", by = "rms", what_color = yellow$bgMagenta$bold, by_color = cyan$italic ) ```

rms

This doesn't preclude you from adding extra crayon colors to your `what` string directly - but the results are not super pretty: ```{r eval=FALSE} say( what = paste0("hello ", crayon::yellow("there "), crayon::underline("world")), by = "trilobite" ) ```

trilobite

### Vary type of output, default calls message() ```{r} say("hell no!") ``` ```{r} say("hell no!", type = "warning") ``` ```{r} say("hell no!", type = "string") ``` ### Catfacts!!!! From the catfacts API at ```{r} say("catfact", "cat") ``` ### Long cat From the a Boing Boing tweet on 2014-05-10 "twitter.com/BoingBoing/status/465170473194512384" (post may be gone) ```{r} say("it's caturday", "longcat") ``` ### Grumpy cat ```{r} say("NO!", by = "grumpycat") ``` ```{r} say("WOKE UP TODAY, IT WAS TERRIBLE", by = "grumpycat") ``` ```{r} say("I HAD FUN ONCE, IT WAS AWFUL", by = "grumpycat") ``` ### Bunny Holding a sign ```{r} say(by = "signbunny") ``` ### Fish ```{r} say(by = "fish") ``` ### R fortunes ```{r} library(fortunes) say("fortune", "cat") ``` You can also pick a particular fortune by number or regex search - if the `fortune` parameter is not `NULL` you don't have pass anything to the `what` parameter (the 1st parameter) ```{r} say(fortune = 100) ``` ```{r} say(fortune = "whatever") ``` ### Trilobite ```{r} say("Hi there :)", by = "trilobite") ``` ### Shark ```{r} say("Q: What do you call a solitary shark\nA: A lone shark", by = "shark") ``` ### Buffalo ```{r} say("Q: What do you call a single buffalo?\nA: A buffalonely", by = "buffalo") ``` ### Clippy ```{r} say(fortune = 59, by = "clippy") ``` ### Yoda ```{r eval=FALSE} say("fortune", by = "yoda") ``` ### Bats! ```{r} say("hi, i'm a bat", by = "bat") ``` See also `bat2` ### Monkey! ```{r} say("fortune", by = "monkey") ``` ### Daemon! ```{r} say("fortune", by = "daemon") ``` ### Egret ```{r} say("je ne regrette rien", by = "egret") ``` See also `bat2` ### Endless horse With `endless=FALSE` cause we gotta compile the .md yo ```{r} endless_horse(endless = FALSE) ``` ### Using pipes ```{r} library("magrittr") "I HAD FUN ONCE, IT WAS AWFUL" %>% say("grumpycat") ``` ### I just want the animals! Okay, hold your endless horses. Just use the function `animal_fetch()` to select the animal you want by name. ```{r} animal_fetch("clippy") ``` ## Meta * License: MIT * Please note that this project is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms. [coc]: https://github.com/sckott/cowsay/blob/main/.github/CODE_OF_CONDUCT.md [contrib]: https://github.com/sckott/cowsay/blob/main/.github/CONTRIBUTING.md

Owner

  • Name: Scott Chamberlain
  • Login: sckott
  • Kind: user
  • Location: Oregon
  • Company: Fred Hutch Data Science Lab/Office of the Chief Data Officer

Software Engineer @ Fred Hutch

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "cowsay",
  "description": "Allows printing of character strings as messages/warnings/etc. with ASCII animals, including cats, cows, frogs, chickens, ghosts, and more.",
  "name": "cowsay: Messages, Warnings, Strings with Ascii Animals",
  "relatedLink": "https://sckott.github.io/cowsay/",
  "codeRepository": "https://github.com/sckott/cowsay",
  "issueTracker": "https://github.com/sckott/cowsay/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "1.2.2",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R Under development (unstable) (2025-07-21 r88439)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Scott",
      "familyName": "Chamberlain",
      "email": "myrmecocystus@gmail.com"
    },
    {
      "@type": "Person",
      "givenName": "Amanda",
      "familyName": "Dobbyn",
      "email": "amanda.e.dobbyn@gmail.com"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "givenName": "Tyler",
      "familyName": "Rinker"
    },
    {
      "@type": "Person",
      "givenName": "Thomas",
      "familyName": "Leeper"
    },
    {
      "@type": "Person",
      "givenName": "Noam",
      "familyName": "Ross"
    },
    {
      "@type": "Person",
      "givenName": "Rich",
      "familyName": "FitzJohn"
    },
    {
      "@type": "Person",
      "givenName": "Carson",
      "familyName": "Sievert"
    },
    {
      "@type": "Person",
      "givenName": "Kiyoko",
      "familyName": "Gotanda"
    },
    {
      "@type": "Person",
      "givenName": "Andy",
      "familyName": "Teucher"
    },
    {
      "@type": "Person",
      "givenName": "Karl",
      "familyName": "Broman"
    },
    {
      "@type": "Person",
      "givenName": "Franz-Sebastian",
      "familyName": "Krah"
    },
    {
      "@type": "Person",
      "givenName": "Lucy",
      "familyName": "D'Agostino McGowan"
    },
    {
      "@type": "Person",
      "givenName": "Guangchuang",
      "familyName": "Yu"
    },
    {
      "@type": "Person",
      "givenName": "Philipp",
      "familyName": "Boersch-Supan"
    },
    {
      "@type": "Person",
      "givenName": "Andreas",
      "familyName": "Brandmaier"
    },
    {
      "@type": "Person",
      "givenName": "Marion",
      "familyName": "Louveaux"
    },
    {
      "@type": "Person",
      "givenName": "David",
      "familyName": "Schoch"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Scott",
      "familyName": "Chamberlain",
      "email": "myrmecocystus@gmail.com"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "fortunes",
      "name": "fortunes",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=fortunes"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmsfact",
      "name": "rmsfact",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmsfact"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "crayon",
      "name": "crayon",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=crayon"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "rlang",
      "name": "rlang",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rlang"
    },
    "SystemRequirements": null
  },
  "fileSize": "390.091KB"
}

GitHub Events

Total
  • Create event: 3
  • Release event: 2
  • Issues event: 18
  • Watch event: 36
  • Issue comment event: 6
  • Push event: 31
  • Pull request event: 2
  • Fork event: 3
Last Year
  • Create event: 3
  • Release event: 2
  • Issues event: 18
  • Watch event: 36
  • Issue comment event: 6
  • Push event: 31
  • Pull request event: 2
  • Fork event: 3

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 415
  • Total Committers: 28
  • Avg Commits per committer: 14.821
  • Development Distribution Score (DDS): 0.359
Past Year
  • Commits: 48
  • Committers: 3
  • Avg Commits per committer: 16.0
  • Development Distribution Score (DDS): 0.083
Top Committers
Name Email Commits
Scott Chamberlain m****s@g****m 266
aedobbyn a****1@g****m 75
ateucher A****r@g****m 14
Harris h****7@n****m 7
Brandmaier b****r@m****e 5
Karl Broman k****n@g****m 5
guangchuang yu g****u@g****m 4
Anonymous@example.com c****1@g****m 4
Jeremy Gray j****y@g****m 4
Lucy l****n@v****u 4
Noam Ross n****s@g****m 4
Rich FitzJohn r****n@g****m 3
schochastics d****d@s****t 3
Florian Mayer F****r@g****m 2
marionlouveaux m****x@g****m 2
David J. Harris d****s 1
GuangchuangYu g****u@g****m 1
Mark Niemann-Ross m****k@n****m 1
Paolo p****o@g****m 1
Philipp Boersch-Supan p****p@b****e 1
Sarveshwaar SS 9****3 1
b780620 B****l@8****m 1
bgreenwell g****n@g****m 1
Steven Pollack s****n@p****t 1
Drew Schmidt s****t@m****u 1
David Cooley d****y@s****u 1
leeper t****r@g****m 1
tyler rinker t****r@g****m 1

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 48
  • Total pull requests: 50
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 15 days
  • Total issue authors: 12
  • Total pull request authors: 25
  • Average comments per issue: 2.42
  • Average comments per pull request: 3.66
  • Merged pull requests: 43
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 11
  • Pull requests: 1
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 4 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.36
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sckott (35)
  • stevenpollack (2)
  • apjanke (2)
  • ecrs98 (1)
  • maelle (1)
  • mye (1)
  • FalsePhilosopher (1)
  • SymbolixAU (1)
  • richfitz (1)
  • florianm (1)
  • aedobbyn (1)
  • oganm (1)
Pull Request Authors
  • aedobbyn (8)
  • ateucher (5)
  • kbroman (4)
  • harriscw (4)
  • noamross (3)
  • richfitz (2)
  • cpsievert (2)
  • mnr (2)
  • onertipaday (2)
  • GuangchuangYu (2)
  • brandmaier (2)
  • stevenpollack (1)
  • trinker (1)
  • safedevil (1)
  • Saru2003 (1)
Top Labels
Issue Labels
new_animal (8) bug (3) wontfix (1)
Pull Request Labels
new_animal (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 1,821 last-month
  • Total docker downloads: 110,463
  • Total dependent packages: 2
  • Total dependent repositories: 10
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: cowsay

Messages, Warnings, Strings with Ascii Animals

  • Versions: 9
  • Dependent Packages: 2
  • Dependent Repositories: 10
  • Downloads: 1,821 Last month
  • Docker Downloads: 110,463
Rankings
Forks count: 1.4%
Stargazers count: 1.5%
Downloads: 8.6%
Dependent repos count: 9.2%
Average: 9.7%
Dependent packages count: 13.6%
Docker downloads count: 23.7%
Maintainers (1)
Last synced: 9 months ago

Dependencies

.github/workflows/R-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/build-docs.yml actions
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • crayon * imports
  • fortunes * imports
  • rmsfact * imports
  • curl * suggests
  • jsonlite * suggests
  • knitr * suggests
  • multicolor * suggests
  • rmarkdown * suggests
  • testthat * suggests
revdep/library.noindex/cowsay/new/cowsay/DESCRIPTION cran
  • crayon * imports
  • fortunes * imports
  • rmsfact * imports
  • curl * suggests
  • jsonlite * suggests
  • knitr * suggests
  • multicolor * suggests
  • rmarkdown * suggests
  • testthat * suggests
revdep/library.noindex/cowsay/old/cowsay/DESCRIPTION cran
  • crayon * imports
  • fortunes * imports
  • rmsfact * imports
  • curl * suggests
  • jsonlite * suggests
  • knitr * suggests
  • multicolor * suggests
  • rmarkdown * suggests
  • testthat * suggests