Video: Debugging JavaScript You Wrote in R

A pseudo-live-streamed walkthrough as I debug some buggy JavaScript written in R for a {reactable} htmlwidget.
R
RStudio
JavaScript
Debugging
Web Development
htmlwidgets
Video
Author

Garrick Aden-Buie

Published

July 20, 2020

Keywords

rstats

htmlwidgets makes it easy to create awesome web things from R and R Markdown, but sometimes you have to write your own JavaScript code… in strings… in R. What do you do if it doesn’t work? How can you write JavaScript interactively?

I “live streamed” my process as I worked through debugging some buggy JavaScript that Tom Mock shared on twitter, touching on the tools used to debug JavaScript and some features from the js4shiny package that help R users with web development.

The example uses the awesome reactable package, which helps you make some incredible HTML interactive HTML tables.

If you want to try this at home, I’ve uploaded the code that doesn’t work and the code that does work as GitHub gists.

Oh and by the way, I’m using the RStudio theme “Flat White” from rsthemes.


This is the first time I’ve made a video like this. If you liked it and want to see more, let me know on Twitter @grrrck.