Skip to content

Examples of useful snippets for R code, mostly with Shiny.

Notifications You must be signed in to change notification settings

rhenkin/rsnippets

Repository files navigation

Useful R snippets

This repo contains snippets of R code that I found useful to save as self-contained examples. Many are about Shiny development and overlap with other packages too. Please check each app.R file or others for the required packages.

Navigation with Shiny

vegawidget + Shiny

  • Using vegawidget::shiny_set_signal: two examples of Shiny apps setting up a dynamic signal from Shiny to vega-lite: one with non-reactive dataset and one with a reactive dataset. Also includes a file showing a setup that does not work for reactive data.
  • Using vegawidget::shiny_get_signal: example of a working Shiny app that combines using reactive data and retrieving a signal from Shiny (e.g. a Vega-based interaction selection). Like above, also includes a file showing what would be a common setup that does not work.

About

Examples of useful snippets for R code, mostly with Shiny.

Topics

Resources

Stars

Watchers

Forks

Languages