Inter-Widget Interactivity for HTML Widgets

Provides building blocks for allowing HTML widgets to communicate with each other, with Shiny or without (i.e. static .html files). Currently supports linked brushing and filtering.


Crosstalk

CRAN R-CMD-check

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:

  1. First install nvm if you don't have it already.
  2. In the crosstalk repo's root directory, run nvm install; this will install the version of Node.js we need.
  3. Run nvm use to switch to our version of Node.js.
  4. Run npm install to install all Node.js dependencies.

To actually build the minified JS:

  1. Run nvm use (only needed once per terminal session).
  2. Run node node_modules/.bin/grunt (or if you have installed grunt-cli globally, you can just run grunt).

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("crosstalk")

1.2.2 by Carson Sievert, a year ago


https://rstudio.github.io/crosstalk/, https://github.com/rstudio/crosstalk


Report a bug at https://github.com/rstudio/crosstalk/issues


Browse source code at https://github.com/cran/crosstalk


Authors: Joe Cheng [aut] , Carson Sievert [aut, cre] (ORCID: , Posit Software , PBC [cph, fnd] , jQuery Foundation [cph] (jQuery library and jQuery UI library) , jQuery contributors [ctb, cph] (jQuery library; authors listed in inst/www/shared/jquery-AUTHORS.txt) , Mark Otto [ctb] (Bootstrap library) , Jacob Thornton [ctb] (Bootstrap library) , Bootstrap contributors [ctb] (Bootstrap library) , Twitter , Inc [cph] (Bootstrap library) , Brian Reavis [ctb, cph] (selectize.js library) , Kristopher Michael Kowal [ctb, cph] (es5-shim library) , es5-shim contributors [ctb, cph] (es5-shim library) , Denis Ineshin [ctb, cph] (ion.rangeSlider library) , Sami Samhuri [ctb, cph] (Javascript strftime library)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmltools, jsonlite, lazyeval, R6

Suggests bslib, ggplot2, sass, shiny, testthat


Imported by DT, DrivePlotR, RagGrid, boxly, clinDataReview, clinUtils, connectwidgets, controlcharts, forestly, gprofiler2, gwpcormapper, kpiwidget, langevitour, leaflet, linevis, pandemonium, plotly, polarisR, quollr, shinybody, sigmajs, threejs, tsibbletalk.

Suggested by GGally, SimSurvey, bamm, cubble, detourr, echarty, enviGCMS, govdown, lineupjs, myIO, reactable, rgl, upsetjs.


See at CRAN