~/talk

Baking JavaScript into a Shiny Package

Talkat ShinyConf 2023 · 2023-03-15..03-17· [javascript]
links:none on file
slides:none on file

Wraps the js-cookie JavaScript library into an R package called cookies that is on CRAN, includes minified JS in inst/js, and adds an HTML dependency that prefers npm but falls back to the bundled files. Implements server-to-client via sendCustomMessage and client-to-server via Shiny.setInputValue, includes a LICENSE.note and tests, and already accepts PRs (one from Jacqueline Nolas); used in R4DS apps (mentor dashboard, book club) and works.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:48Why JavaScript matters
  3. 4:57Why wrap JavaScript in a package
  4. 7:27r4ds community background
  5. 12:09Recipe for JavaScript packages
  6. 12:30Licensing JavaScript libraries
  7. 14:17Authors and description setup
  8. 15:45Inst folder and JS files
  9. 17:30HTML dependency function
  10. 19:34Custom JavaScript integration
  11. 20:35Shiny-JavaScript communication
  12. 21:17Sending messages to JavaScript
  13. 23:23Receiving messages from JavaScript
  14. 24:04Handling input types
  15. 24:48JavaScript event listeners
  16. 26:14Working with Shiny modules
  17. 27:39Conclusion and further reading
  18. 28:43Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.