Video: Debugging JavaScript You Wrote in R

By Garrick Aden-Buie in Blog

July 20, 2020

Posted on:
July 20, 2020
1 minute read, 164 words
R RStudio JavaScript Debugging Web Development reactable htmlwidgets Video
See Also:
countdown v0.4.0 – Now on CRAN!
Process Profile Pictures with magick
🧼 cleanrmd

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.