Skip to content

Commit

Permalink
Merge pull request #8 from tadascience/dev_verse
Browse files Browse the repository at this point in the history
verse()
  • Loading branch information
romainfrancois committed Mar 3, 2024
2 parents d9cef76 + 8f9fe54 commit 04a2565
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Description: Suite of tools to support the practice of tada science. It includes
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1.9000
RoxygenNote: 7.3.1
Remotes: mlverse/chattr
Imports:
chattr,
cli,
glue,
grDevices,
purrr,
utils
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Generated by roxygen2: do not edit by hand

export(pkg_roulette)
export(verse)
importFrom(chattr,chattr)
importFrom(cli,make_ansi_style)
importFrom(grDevices,colors)
importFrom(purrr,pwalk)
Expand Down
17 changes: 17 additions & 0 deletions R/verse.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

#' Write poems about R packages
#'
#' @param pkg A package to write a poem about
#'
#' @examples
#' \dontrun{
#' chattr::chattr_use("gpt35")
#' tada::verse("ggplot2")
#' }
#'
#' @importFrom chattr chattr
#' @export
verse <- function(pkg = "ggplot2") {
prompt <- glue::glue("Can you write a poem about the R package called '{pkg}'. Please add a bunch of emojis.")
chattr::chattr(prompt)
}
21 changes: 21 additions & 0 deletions man/verse.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04a2565

Please sign in to comment.