Novel solutions using sortable in shiny apps"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(sortable)

Creating an app

This example demonstrates how to use custom sortable widgets with any shiny object.

library(htmltools)
tags$div(
  class = "shiny-app-frame",
  tags$iframe(
    src = "https://andrie-de-vries.shinyapps.io/sortable_drag_vars_to_plot_app/",
    width = 800,
    height = 700
  )
)

Source code

knitr::read_chunk(
  system.file("shiny-examples/drag_vars_to_plot/app.R", package = "sortable")
)



Try the sortable package in your browser

Any scripts or data that you put into this service are public.

sortable documentation built on Aug. 15, 2022, 1:05 a.m.