Crosstalk
Inter-htmlwidget communication for R (with and without Shiny)
Install / Use
/learn @rstudio/CrosstalkREADME
Crosstalk
<!-- badges: start --> <!-- badges: end -->Crosstalk is a package for R that enhances the htmlwidgets package. It extends htmlwidgets with a set of classes, functions, and conventions for implementing cross-widget interactions (currently, linked brushing and filtering).
Find out more at the documentation website: http://rstudio.github.io/crosstalk/
Building JavaScript assets
(This section is only for developers who intend to modify the JavaScript source code in Crosstalk itself.)
The JavaScript source code in this package lives under javascript/, however the copy that is actually loaded and used during runtime is in minified form at inst/www/js/. Anytime you make changes to javascript/ source files, you must rebuild the minified JS.
To set up your repo for building the minified JS:
- First install nvm if you don't have it already.
- In the crosstalk repo's root directory, run
nvm install; this will install the version of Node.js we need. - Run
nvm useto switch to our version of Node.js. - Run
npm installto install all Node.js dependencies.
To actually build the minified JS:
- Run
nvm use(only needed once per terminal session). - Run
node node_modules/.bin/grunt(or if you have installedgrunt-cliglobally, you can just rungrunt).
This will run unit tests, lint, and build the JavaScript dist bundle. When making changes to the JavaScript code, you must always do this first, and then build the R package as normal.
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
