Drag-and-Drop in 'shiny' Apps with 'SortableJS'
Overview
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.
Bug fixes
- Fix the problem with using
sortablewithshinymodules. To prevent user code from breaking, this requires opting in by using 'enable_modules()`. See the vignette for more information.
Enhancements
- New function
update_bucket_list()to update the items in a bucket list - New functionality to update
labelsinupdate_rank_list()
Updates
- Update
Sortable.jsto version 1.15.6
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 15 (1 internal)includes a package overview page
- Examples that run
- 100%9 run in a plain check (7 of them under a condition)
- Exported functions with examples
- 64%
- Documented parameters
- 97%
- Return-value docs
- 57%
- Help pages citing references
- 7%
- Cloning and removing elements HTML
- Dynamically updating a rank_list element HTML
- Novel solutions using sortable in shiny apps HTML
- Understanding the interface to sortable.js HTML
- Using `sortable` with `shiny` modules HTML
- Using custom styles with CSS HTML
- Using rank list and bucket lists in Shiny apps HTML
Downloads
Repository
- PRs merged (all time)
- 79%
- Median days to close, 50 most recently updated closed issues
- 51
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/rstudio/sortable on 2026-10-11.
GitHub Pages site last deployed 2026-02-18
pkgdown site last built 2026-02-18
Show all practicesHide 2 practices
Dependencies
Installing sortable adds 46 packages (23 with compiled code, 33 MB of source tarballs). Heaviest: bslib 5.6 MB, promises 3.1 MB, sass 2.9 MB.
Show all 26 packagesHide all 26 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.6.0Latest2025-12-14 · current release · diff ↗ ·
added 3 exports
enable_modules, is_modules_enabled, update_rank_list - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.5.0
- 0.4.62022-08-14 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.52021-12-13 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.4.42020-09-17 · diff ↗
- 0.4.32020-08-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.22019-12-01
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-12-01
- Total releases
- 7 / 7 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sortable")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.