{"id":13511749,"url":"https://github.com/sckott/cowsay","last_synced_at":"2025-05-14T18:04:08.977Z","repository":{"id":11125200,"uuid":"13485998","full_name":"sckott/cowsay","owner":"sckott","description":"cowsay w/ more animals, in R","archived":false,"fork":false,"pushed_at":"2025-03-31T05:35:53.000Z","size":7729,"stargazers_count":331,"open_issues_count":3,"forks_count":52,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-13T13:19:39.145Z","etag":null,"topics":["ascii-art","r","r-stats","rstats"],"latest_commit_sha":null,"homepage":"https://sckott.github.io/cowsay/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sckott.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2013-10-11T00:09:58.000Z","updated_at":"2025-05-12T19:12:42.000Z","dependencies_parsed_at":"2025-02-28T10:07:01.961Z","dependency_job_id":"b7d47959-9f9c-4e9f-9f55-be1a8d320afc","html_url":"https://github.com/sckott/cowsay","commit_stats":{"total_commits":367,"total_committers":26,"mean_commits":"14.115384615384615","dds":0.3950953678474114,"last_synced_commit":"2cb88e4cce16522a198ac1a29990f8c079a5a283"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fcowsay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fcowsay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fcowsay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fcowsay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/cowsay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198452,"owners_count":22030964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii-art","r","r-stats","rstats"],"created_at":"2024-08-01T03:01:09.334Z","updated_at":"2025-05-14T18:04:03.960Z","avatar_url":"https://github.com/sckott.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"cowsay\n======\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  comment = \"#\u003e\",\n  collapse = TRUE\n)\n```\n\n![cran checks](https://badges.cranchecks.info/worst/cowsay.svg)\n[![R-check](https://github.com/sckott/cowsay/workflows/R-check/badge.svg)](https://github.com/sckott/cowsay/actions?query=workflow%3AR-check)\n[![codecov](https://codecov.io/gh/sckott/cowsay/graph/badge.svg?token=fewxwGHXfv)](https://app.codecov.io/gh/sckott/cowsay)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/cowsay)](https://github.com/r-hub/cranlogs.app)\n[![cran version](https://www.r-pkg.org/badges/version/cowsay)](https://cran.r-project.org/package=cowsay)\n\n### What is this?\n\nIf you are familiar with `cowsay` on the cli, then you know what this is, but for R.  If not, read below.  Why?  Why not?\n\n### History\n\ncowsay 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 \u003chttps://cowsay.diamonds/\u003e ([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). \n\nThis 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.\n\n### Contributors (alphabetical)\n\n```{r echo=FALSE}\npeeps \u003c- c(\n  \"Scott Chamberlain\",\n  \"Tyler Rinker\",\n  \"Thomas Leeper\",\n  \"Noam Ross\",\n  \"Rich FitzJohn\",\n  \"Kiyoko Gotanda\",\n  \"Carson Sievert\",\n  \"Andy Teucher\",\n  \"Karl Broman\",\n  \"Franz-Sebastian Krah\",\n  \"Lucy D'Agostino McGowan\",\n  \"Guangchuang Yu\",\n  \"Paolo Sonego\",\n  \"Philipp Boersch-Supan\",\n  \"Andreas Brandmaier\",\n  \"Amanda Dobbyn\",\n  \"Marion Louveaux\",\n  \"David Schoch\"\n)\n```\n\n```{r results='asis', echo=FALSE}\ncat(c(\"\", sort(peeps)), sep = \"\\n * \")\n```\n\nThat's right, it takes `r length(peeps)` people to make `cowsay` - it's that hard.\n\n### Contributing\n\nSee [CONTRIBUTING.md][contrib]\n\n### Where to find ASCII animal art\n\nSources to look in:\n\n* https://asciiart.website/ - again, this person only collects them - no mention of license, permissions, etc.\n\nPermissions\n\nIn the ascii art mailing list https://groups.google.com/forum/#!forum/alt.ascii-art they say:\n\n```\n As for posting other people's ASCII art,\n    after a discussion in news:alt.ascii-art       _     ___\n    the following rules were agreed upon:         #_~`--'__ `===-,\n    1.  If an ASCII ART picture has initials      `.`.     `#.,//\n        on it, leave them on when posting it      ,_\\_\\     ## #\\\n    2.  If an ASCII ART picture doesn't have      `__.__    `####\\\n        initials on it,  mention  that  you            ~~\\ ,###'~\n        didn't  draw  it  when  posting  it.              \\##'\n    3.  If somebody  posts a picture without                  [nosig]\n        initials and you have an original copy\n        with initials on, feel free to re-post the original version.\n        *   The re-post ought not to be taken personally, as we all\n            know that ASCII art often loses proper credits.\n            Responses to the re-post are not necessary.\n\n    One contributor, name of Krogg, suggested the following:\n\n    1.) Ultra polite:...ya make yer own ascii and use it.\n    2.)  Very polite:...Ya contact the author and ask if ya\n                        can use it...\n    3.)       polite:...Ya use it but you keep the Credits\n                        in there like they should be.\n    4.)         rude:...Ya use it and strip credits.\n    5.)    Very rude:...Ya use it and claim that it Is\n                        _Your_ very own creation...\n```\n\nSo, 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).\n\n### Quick watch start\n\nAsciicast: \u003chttps://asciinema.org/a/7745\u003e\n\n### Install\n\nFrom CRAN\n\n```{r eval=FALSE}\n# install.packages(\"pak\")\npak::pak(\"cowsay\")\n```\n\nDev version\n\n```{r eval=FALSE}\n# install.packages(\"pak\")\npak::pak(\"sckott/cowsay\")\n```\n\n```{r}\nlibrary(\"cowsay\")\n```\n\n### The animals\n\n```{r}\nsort(animals)\n```\n\n### Say Something\n\n```{r}\nsay(\"time\")\n```\n\n```{r}\nsay(\"ain't that some shit\", \"chicken\")\n```\n\nAdd some color: \n\n```{r}\nlibrary(crayon)\n```\n\n\n```{r eval=FALSE}\nsay(\"boo!\", \"ghost\",\n  what_color = \"cyan\", by_color = \"saddlebrown\"\n)\n```\n\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"./man/figures/ghost.png\" alt=\"ghost\" height=\"200px\"\u003e\n\u003c/p\u003e\n\n\n```{r eval=FALSE}\nsay(\"I love hooo you are!\", \"owl\",\n  what_color = rgb(0, 1, 1), by_color = \"#FF0000\"\n)\n```\n\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"./man/figures/owl.png\" alt=\"owl\" height=\"200px\"\u003e\n\u003c/p\u003e\n\n\nString styles together [crayon-style](https://github.com/r-lib/crayon#styles):\n\n\n```{r eval=FALSE}\nsay(\n  what = \"rms\", by = \"rms\",\n  what_color = yellow$bgMagenta$bold,\n  by_color = cyan$italic\n)\n```\n\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"./man/figures/rms.png\" alt=\"rms\" height=\"350px\"\u003e\n\u003c/p\u003e\n\n\nThis doesn't preclude you from adding extra crayon colors to your `what` string directly - but the results are not super pretty:\n\n\n```{r eval=FALSE}\nsay(\n  what = paste0(\"hello \", crayon::yellow(\"there \"), crayon::underline(\"world\")),\n  by = \"trilobite\"\n)\n```\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"./man/figures/trilobite.png\" alt=\"trilobite\" height=\"250px\"\u003e\n\u003c/p\u003e\n\n### Vary type of output, default calls message()\n\n```{r}\nsay(\"hell no!\")\n```\n\n\n```{r}\nsay(\"hell no!\", type = \"warning\")\n```\n\n\n```{r}\nsay(\"hell no!\", type = \"string\")\n```\n\n\n### Catfacts!!!!\n\nFrom the catfacts API  at \u003chttps://catfact.ninja\u003e\n\n```{r}\nsay(\"catfact\", \"cat\")\n```\n\n### Long cat\n\nFrom the a Boing Boing tweet on 2014-05-10 \"twitter.com/BoingBoing/status/465170473194512384\" (post may be gone)\n\n```{r}\nsay(\"it's caturday\", \"longcat\")\n```\n\n### Grumpy cat\n\n```{r}\nsay(\"NO!\", by = \"grumpycat\")\n```\n\n```{r}\nsay(\"WOKE UP TODAY, IT WAS TERRIBLE\", by = \"grumpycat\")\n```\n\n```{r}\nsay(\"I HAD FUN ONCE, IT WAS AWFUL\", by = \"grumpycat\")\n```\n\n### Bunny Holding a sign\n\n```{r}\nsay(by = \"signbunny\")\n```\n\n### Fish\n\n```{r}\nsay(by = \"fish\")\n```\n\n### R fortunes\n\n```{r}\nlibrary(fortunes)\nsay(\"fortune\", \"cat\")\n```\n\nYou 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)\n\n```{r}\nsay(fortune = 100)\n```\n\n```{r}\nsay(fortune = \"whatever\")\n```\n\n### Trilobite\n\n```{r}\nsay(\"Hi there :)\", by = \"trilobite\")\n```\n\n### Shark\n\n```{r}\nsay(\"Q: What do you call a solitary shark\\nA: A lone shark\", by = \"shark\")\n```\n\n### Buffalo\n\n```{r}\nsay(\"Q: What do you call a single buffalo?\\nA: A buffalonely\", by = \"buffalo\")\n```\n\n### Clippy\n\n```{r}\nsay(fortune = 59, by = \"clippy\")\n```\n\n### Yoda\n\n```{r eval=FALSE}\nsay(\"fortune\", by = \"yoda\")\n```\n\n### Bats!\n\n```{r}\nsay(\"hi, i'm a bat\", by = \"bat\")\n```\n\nSee also `bat2`\n\n### Monkey!\n\n```{r}\nsay(\"fortune\", by = \"monkey\")\n```\n\n### Daemon!\n\n```{r}\nsay(\"fortune\", by = \"daemon\")\n```\n\n### Egret\n\n```{r}\nsay(\"je ne regrette rien\", by = \"egret\")\n```\n\n\nSee also `bat2`\n\n### Endless horse\n\nWith `endless=FALSE` cause we gotta compile the .md yo\n\n```{r}\nendless_horse(endless = FALSE)\n```\n\n### Using pipes\n\n```{r}\nlibrary(\"magrittr\")\n\"I HAD FUN ONCE, IT WAS AWFUL\" %\u003e% say(\"grumpycat\")\n```\n\n### I just want the animals!\n\nOkay, hold your endless horses. Just use the function `animal_fetch()` to  select the animal you want by name.\n\n```{r}\nanimal_fetch(\"clippy\")\n```\n\n## Meta\n\n* License: MIT\n* 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.\n\n[coc]: https://github.com/sckott/cowsay/blob/main/.github/CODE_OF_CONDUCT.md\n[contrib]: https://github.com/sckott/cowsay/blob/main/.github/CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fcowsay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fcowsay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fcowsay/lists"}