diff --git a/DESCRIPTION b/DESCRIPTION index 90300cd..9837f17 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,7 @@ Title: Messages, Warnings, Strings with Ascii Animals Description: Allows printing of character strings as messages/warnings/etc. with ASCII animals, including cats, cows, frogs, chickens, ghosts, and more. -Version: 0.9.1.91 +Version: 1.0.0 License: MIT + file LICENSE Authors@R: c( person("Scott", "Chamberlain", role = c("aut", "cre"), diff --git a/NEWS.md b/NEWS.md index ae8233d..34af831 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,26 @@ +cowsay 1.0.0 +============ + +### BREAKING CHANGES + +* Though this may not cause your code to fail/etc. the bubbles have changed to match that of the original cowsay program created in Perl - both the `say` function and the new `think` function. This is breaking in the sense that the output of `say` is fundamentally different assuming you care about ascii art. +* `say` color args change: `by_color` param now by default is whatever is set for `what_color` - allowing for setting one color for both the quote and the animal. If no colors are supplied behavior is unchanged from previous version. (#85) + +### NEW FEATURES + +* new function `think()` to duplicate what cowthink function does with command line cowsay - different bubble sides and tail (see examples) (#93) +* A user (@oganm) suggested removing the speech bubble from the ascii art - and we agree! `say` has been refactored, now using separate new functions `bubble_say`/`bubble_think` and `bubble_tail` to construct the quote/speech bubble and its tail. You can use these separate new functions yourself to manually do what `say` and `think` do. See the docs for details (`?bubble_say`/`?bubble_tail`) (#67) + +### MINOR IMPROVEMENTS + +* Added notes about history of cowsay in readme (#94) +* remove `multicolor` package for good as it's not coming back to CRAN (#90) + +### BUG FIXES + +* stegosaurus fixed! apparently the ascii art for the stegosaurus in this package was a diplodocus. thanks @stochastics ! (#88) + + cowsay 0.9.0 ============ diff --git a/R/bubble.R b/R/bubble.R index d3376f0..45e49c0 100644 --- a/R/bubble.R +++ b/R/bubble.R @@ -1,6 +1,7 @@ #' Thought/speech bubble/balloon #' #' @export +#' @family bubble #' @param x (character) a character vector #' @param width (integer/numeric) width of each line. default: 60 #' @return character vector of length greater than the input `x` @@ -87,6 +88,7 @@ bubble_think <- function(x, width = 60) { #' Make the tail part of a thought bubble #' #' @export +#' @family bubble #' @param animal (character) a string #' @param thought_sym (character) scalar character to use for the #' speech bubble tail (see ). diff --git a/codemeta.json b/codemeta.json index 184a841..615b839 100644 --- a/codemeta.json +++ b/codemeta.json @@ -4,16 +4,17 @@ "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": "0.9.0", + "version": "1.0.0", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.3.1 (2023-06-16)", + "runtimePlatform": "R version 4.4.2 (2024-10-31)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -104,6 +105,11 @@ "@type": "Person", "givenName": "Marion", "familyName": "Louveaux" + }, + { + "@type": "Person", + "givenName": "David", + "familyName": "Schoch" } ], "maintainer": [ @@ -117,15 +123,27 @@ "softwareSuggestions": [ { "@type": "SoftwareApplication", - "identifier": "curl", - "name": "curl", + "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=curl" + "sameAs": "https://CRAN.R-project.org/package=rmsfact" }, { "@type": "SoftwareApplication", @@ -191,29 +209,17 @@ }, "2": { "@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" - }, - "3": { - "@type": "SoftwareApplication", - "identifier": "rmsfact", - "name": "rmsfact", + "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=rmsfact" + "sameAs": "https://CRAN.R-project.org/package=rlang" }, "SystemRequirements": null }, - "fileSize": "334.382KB" + "fileSize": "391.52KB" } diff --git a/man/bubble_say.Rd b/man/bubble_say.Rd index 5574bd3..1c3f94b 100644 --- a/man/bubble_say.Rd +++ b/man/bubble_say.Rd @@ -46,3 +46,8 @@ text_style <- crayon::make_style(text_color) text_style(bubble_say(quote)) \dontshow{\}) # examplesIf} } +\seealso{ +Other bubble: +\code{\link{bubble_tail}()} +} +\concept{bubble} diff --git a/man/bubble_tail.Rd b/man/bubble_tail.Rd index ca49214..1a55e3f 100644 --- a/man/bubble_tail.Rd +++ b/man/bubble_tail.Rd @@ -40,3 +40,8 @@ cat(bubble_tail2(59), sep = "\n") cat(bubble_tail2(11), sep = "\n") cat(bubble_tail2(11, "\%"), sep = "\n") } +\seealso{ +Other bubble: +\code{\link{bubble_say}()} +} +\concept{bubble}