Package: shinychat 0.4.0.9000

Image

Garrick Aden-Buie

shinychat: Chat UI Component for 'shiny'

Provides a scrolling chat interface with multiline input, suitable for creating chatbot apps based on Large Language Models (LLMs). Designed to work particularly well with the 'ellmer' R package for calling LLMs.

Authors:Joe Cheng [aut], Carson Sievert [aut], Garrick Aden-Buie [aut, cre], Barret Schloerke [aut], Posit Software, PBC [cph, fnd]

shinychat_0.4.0.9000.tar.gz
shinychat_0.4.0.9000.zip(r-4.7-any)shinychat_0.4.0.9000.zip(r-4.6-any)shinychat_0.4.0.9000.zip(r-4.5-any)
shinychat_0.4.0.9000.tgz(r-4.6-any)shinychat_0.4.0.9000.tgz(r-4.5-any)
shinychat_0.4.0.9000.tar.gz(r-4.7-any)shinychat_0.4.0.9000.tar.gz(r-4.6-any)
shinychat_0.4.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
shinychat/json (API)

# Install 'shinychat' in R:
install.packages('shinychat', repos = c('https://posit-dev.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/posit-dev/shinychat/issues

Pkgdown/docs site:https://posit-dev.github.io

On CRAN:

Conda:

12.04 score 137 stars 5 packages 321 scripts 4.0k downloads 33 exports 43 dependencies

Last updated from:eb02458946. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develNOTE191
source / vignettesOK250
linux-releaseNOTE249
macos-releaseNOTE125
macos-oldrelNOTE175
windows-develNOTE164
windows-releaseNOTE143
windows-oldrelNOTE163
wasm-releaseOK145

Exports:chat_appchat_appendchat_append_messagechat_attachmentchat_clearchat_drawerchat_drawer_hidechat_drawer_showchat_drawer_togglechat_drawer_updatechat_enable_historychat_get_greetingchat_greetingchat_mod_serverchat_mod_uichat_nav_panelchat_restorechat_serverchat_set_greetingchat_sidebarchat_uichat_ui_historycontents_shinychatContentSlashCommandConversationStoreFileConversationStorehistory_optionsmarkdown_streamoutput_markdown_streampage_chatpage_chat_themetool_result_displayupdate_chat_user_input

Dependencies:askpassbase64encbslibcachemclicommonmarkcorocurldigestellmerfastmapfontawesomefsgluehtmltoolshttpuvhttr2jquerylibjsonlitelaterlifecyclemagrittrmemoisemimeopensslotelpillarpkgconfigpromisesR6rappdirsRcpprlangS7sassshinysourcetoolssystibbleutf8vctrswithrxtable

Tool Calling UI
Introduction | Basic tool display | Tool title and icon | Via tool annotations | Present tense while running, past tense once done | Via the tool result | Tool intent | Customizing tool result display | Activity-row label and value preview | Rich content in the drill-down card | Alternative HTML display | Alternative markdown display | Fully custom standalone output | Display Options | Grouping tool calls | Global display options

Last update: 2026-09-04
Started: 2026-09-04

Get started
Setup | Choose a model | Set up credentials | Create a basic chatbot | Inspect the code | Add a system prompt | Add greetings and suggestions | On startup | Mid-conversation | Layouts | Full-window page with navigation | Screen-filling layout | Sidebar layout | Card layout | Slash commands | Prompt expansion | Side effects | Client-side handlers | Key points | Stream cancellation | Using chat_server() (recommended) | Manual approach | File attachments

Last update: 2026-09-04
Started: 2025-06-27

Readme and manuals

Help Manual

Help pageTopics
Open a live chat application in the browserchat_app chat_server
Append an assistant response (or user message) to a chat controlchat_append
Low-level function to append a message to a chat controlchat_append_message
Create an attachment from a local file pathchat_attachment
Clear all messages from a chat controlchat_clear
Create a chat drawer configurationchat_drawer
Hide a chat drawerchat_drawer_hide
Show a chat drawerchat_drawer_show
Toggle a chat drawerchat_drawer_toggle
Update a chat drawerchat_drawer_update
Enable conversation history for a chatchat_enable_history
Get the current greeting contentchat_get_greeting
Create a greeting for a chat UIchat_greeting
Create a page-chat navigation panelchat_nav_panel
Add Shiny bookmarking for shinychatchat_restore
Set the greeting for a chat UIchat_set_greeting
Create a chat sidebar configurationchat_sidebar
Create a chat UI elementchat_ui
Create a chat history selectorchat_ui_history
Format ellmer content for shinychatcontents_shinychat
Slash command contentContentSlashCommand
Abstract base class for conversation storage backendsConversationStore
File-based conversation storage backendFileConversationStore
Configure chat history optionshistory_options
Stream markdown contentmarkdown_stream
Create a UI element for a markdown stream.output_markdown_stream
Create a full-window chat pagepage_chat
Create a theme for 'page_chat()'page_chat_theme
Customize how a tool result is displayedtool_result_display
Update the user input of a chat controlupdate_chat_user_input

  • Image