Skip to content

Commit b29b3d4

Browse files
committed
Remove {...} from docs
1 parent 2f5ac8c commit b29b3d4

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

R/chat.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ chat_deps <- function() {
5757
#' server <- function(input, output, session) {
5858
#' observeEvent(input$chat_user_input, {
5959
#' # In a real app, this would call out to a chat model or API,
60-
#' # perhaps using {elmer}.
60+
#' # perhaps using the 'elmer' package.
6161
#' response <- paste0(
6262
#' "You said:\n\n",
6363
#' "<blockquote>",
@@ -134,7 +134,7 @@ chat_ui <- function(
134134
#' @description
135135
#' The `chat_append` function appends a message to an existing chat control. The
136136
#' `response` can be a string, string generator, string promise, or string
137-
#' promise generator (as returned by the {elmer} package's `chat`, `stream`,
137+
#' promise generator (as returned by the 'elmer' package's `chat`, `stream`,
138138
#' `chat_async`, and `stream_async` methods, respectively).
139139
#'
140140
#' This function should be called from a Shiny app's server. It is generally
@@ -147,9 +147,9 @@ chat_ui <- function(
147147
#' # Error handling
148148
#'
149149
#' If the `response` argument is a generator, promise, or promise generator, and
150-
#' an error occurs while producing the message (e.g. an elmer chat object errors
151-
#' during `stream_async`), the promise returned by `chat_append` will reject
152-
#' with the error. If the `chat_append` call is the last expression in a Shiny
150+
#' an error occurs while producing the message (e.g., an iteration in
151+
#' `stream_async` fails), the promise returned by `chat_append` will reject with
152+
#' the error. If the `chat_append` call is the last expression in a Shiny
153153
#' observer, Shiny will see that the observer failed, and end the user session.
154154
#' If you prefer to handle the error gracefully, use [promises::catch()] on the
155155
#' promise returned by `chat_append`.
@@ -172,7 +172,7 @@ chat_ui <- function(
172172
#' library(shinychat)
173173
#'
174174
#' # Dumbest chatbot in the world: ignores user input and chooses
175-
#' # a random, vague response. For a chatbot, try {elmer}.
175+
#' # a random, vague response.
176176
#' fake_chatbot <- async_generator(function(input) {
177177
#' responses <- c(
178178
#' "What does that suggest to you?",
@@ -253,7 +253,7 @@ chat_append <- function(id, response, role = c("assistant", "user"), session = g
253253
#' library(shinychat)
254254
#'
255255
#' # Dumbest chatbot in the world: ignores user input and chooses
256-
#' # a random, vague response. For a chatbot, try {elmer}.
256+
#' # a random, vague response.
257257
#' fake_chatbot <- async_generator(function(id, input) {
258258
#' responses <- c(
259259
#' "What does that suggest to you?",

man/chat_append.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/chat_append_message.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/chat_ui.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)