Skip to content

Commit

Permalink
elmer -> ellmer
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Dec 20, 2024
1 parent c82a286 commit 0a986da
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BugReports: https://github.com/simonpcouch/ensure/issues
Imports:
cli,
coro,
elmer,
ellmer,
rlang,
rstudioapi,
usethis
Expand All @@ -28,4 +28,4 @@ Suggests:
tibble,
withr
Remotes:
hadley/elmer
tidyverse/ellmer
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ importFrom(cli,cli_abort)
importFrom(cli,cli_inform)
importFrom(cli,cli_warn)
importFrom(cli,qty)
importFrom(elmer,content_image_url)
importFrom(ellmer,content_image_url)
2 changes: 1 addition & 1 deletion R/ensure_that.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' This function queries an LLM to write unit tests for selected R code. To do
#' so, it:
#'
#' * Initializes a [ensurer()]: an elmer [Chat()][elmer::Chat()] that knows how
#' * Initializes a [ensurer()]: an ellmer [Chat()][ellmer::Chat()] that knows how
#' to write testthat unit tests.
#' * Reads the contents of the active `.R` file as well as the current selection.
#' * Opens a corresponding test file (creating it if need be).
Expand Down
8 changes: 4 additions & 4 deletions R/ensurer.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#' Initialize an ensurer object
#'
#' @description
#' ensurers are elmer [Chat()][elmer::Chat()]s that know how to write testthat
#' ensurers are ellmer [Chat()][ellmer::Chat()]s that know how to write testthat
#' unit tests. This function creates ensurers, though [ensure_that()] will create
#' ensurers it needs on-the-fly.
#'
#' @param fn A `new_*()` function, likely from the elmer package. Defaults
#' to [elmer::chat_claude()]. To set a persistent alternative default,
#' @param fn A `new_*()` function, likely from the ellmer package. Defaults
#' to [ellmer::chat_claude()]. To set a persistent alternative default,
#' set the `.ensure_fn` option; see examples below.
#' @param .ns The package that the `new_*()` function is exported from.
#' @param ... Additional arguments to `fn`. The `system_prompt` argument will
Expand Down Expand Up @@ -40,7 +40,7 @@
ensurer <- function(
fn = getOption(".ensure_fn", default = "chat_claude"),
...,
.ns = "elmer"
.ns = "ellmer"
) {
args <- list(...)
default_args <- getOption(".ensure_args", default = list())
Expand Down
2 changes: 1 addition & 1 deletion R/testhelper-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## usethis namespace: start
#' @import rlang
#' @importFrom cli cli_abort cli_warn cli_inform qty
#' @importFrom elmer content_image_url
#' @importFrom ellmer content_image_url
## usethis namespace: end
NULL

Expand Down
2 changes: 1 addition & 1 deletion man/ensure_that.Rd

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

8 changes: 4 additions & 4 deletions man/ensurer.Rd

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

0 comments on commit 0a986da

Please sign in to comment.