We live in magical times

What one can do with a static website these days is pretty amazing!
webR
R
teaching
Author
Published

27 October, 2025

A lot of things are less than ideal in the world at the moment, but I can’t help but be amazed at what one can do with a static website. WebR through quarto-live allows you to run R (you can also run Python with pyodide) in the browser. No server required. Like below:

I can’t help but feel this is a little like magic.

Note

Full disclosure, while this works out of the box on a local machine, I had to tweak a few things for it to render with quarto render as I had all sort of yaml issues. I think there was 16 commits between me starting the blog post with the demo code chunk and it working as intended with quarto render.

Of course, you can do more useful things that this. For example create a visualisation that the reader can interact with to better understand the data.

First, we can get a peak at the data:

The data contains 1 row per city per time period. Armed with this knowledge, we can make a simple plot. It is obvious that we will need to use some sort of summary of the data to draw our plot

Warning

The below code chunk only works if you have run the previous one. Specifically, if you have run data("txhousing"). If you want to run the below code chunk independently, you will need to add that line to it.

This is hardly a masterpiece, and in many cases, you only want the reader to see the final plot, but for teaching, this can be used to engage the reader so they can build the plot themselves step by steps.

Anyway, I am pretty amazed this works, and excited to see how to use it in teaching

Citation

BibTeX citation:
@online{vernet2025,
  author = {Vernet, Antoine},
  title = {We Live in Magical Times},
  date = {2025-10-27},
  url = {https://www.antoinevernet.com/blog/2025/10/webr_test/},
  langid = {en}
}
For attribution, please cite this work as:
Vernet, A. 2025, October 27. We live in magical times. https://www.antoinevernet.com/blog/2025/10/webr_test/.