Package: sortable 0.6.0

Andrie de Vries

sortable: Drag-and-Drop in 'shiny' Apps with 'SortableJS'

Enables drag-and-drop behaviour in Shiny apps, by exposing the functionality of the 'SortableJS' <https://sortablejs.github.io/Sortable/> JavaScript library as an 'htmlwidget'. You can use this in Shiny apps and widgets, 'learnr' tutorials as well as R Markdown. In addition, provides a custom 'learnr' question type - 'question_rank()' - that allows ranking questions with drag-and-drop.

Authors:Andrie de Vries [cre, aut], Barret Schloerke [aut], Kenton Russell [aut, ccp], Posit [cph, fnd], Lebedev Konstantin [cph]

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

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

Bug tracker:https://github.com/rstudio/sortable/issues

Pkgdown/docs site:https://rstudio.github.io

On CRAN:

Conda:

htmlwidget

12.26 score 136 stars 30 packages 397 scripts 5.9k downloads 16 exports 46 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE130
source / vignettesOK222
linux-release-x86_64NOTE144
macos-release-arm64NOTE126
macos-oldrel-arm64NOTE107
windows-develNOTE101
windows-releaseNOTE96
windows-oldrelNOTE105
wasm-releaseOK135

Exports:add_rank_listbucket_listchain_js_eventsenable_modulesis_modules_enabledis_sortable_optionsquestion_rankrank_listrender_sortablesortable_jssortable_js_capture_bucket_inputsortable_js_capture_inputsortable_optionssortable_outputupdate_bucket_listupdate_rank_list

Dependencies:assertthatbackportsbase64encbslibcachemcheckmateclicommonmarkdigestevaluatefastmapfontawesomefsgluehighrhtmltoolshtmlwidgetshttpuvjquerylibjsonliteknitrlaterlearnrlifecyclelitedownmagrittrmarkdownmemoisemimeotelpromisesR6rappdirsRcpprenvrlangrmarkdownrprojrootsassshinysourcetoolstinytexwithrxfunxtableyaml

Dynamically updating a rank_list element
Introduction | Full example

Last update: 2025-12-12
Started: 2021-04-22

Using sortable with shiny modules
Summary | Introduction | Understanding the module namespace issue | Enabling and disabling shiny modules support | Backward Compatibility

Last update: 2025-12-10
Started: 2025-12-07

Cloning and removing elements
Introduction | Cloning an element | Removing an element | Full example

Last update: 2024-09-12
Started: 2020-08-22

Novel solutions using sortable in shiny apps
Creating an app | Source code

Last update: 2024-09-12
Started: 2019-07-03

Understanding the interface to sortable.js
The central idea | An example using raw HTML | Use a tag list to achieve the same, but from R | Little harder but better example | The power of groups | Dragging and dropping shiny tabs

Last update: 2024-09-12
Started: 2019-06-25

Using custom styles with CSS
Using custom styles | Source code

Last update: 2024-09-12
Started: 2020-02-06

Using rank list and bucket lists in Shiny apps
Introduction | Rank list | Demo | Source code | Bucket list

Last update: 2024-09-12
Started: 2020-08-24