Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@rsquaredacademy.bsky.socialNov 16, 2026, 1:11 PM

How R runs in a browser tab: webR is R compiled to WebAssembly, so the session starts in the page and the code runs on the learner's computer. Sys.info()[["sysname"]] returns "Emscripten".

www.rsquaredacademy.com?utm_medium=s...

#rstats #webR

Photo, no descriptionPhoto, no description
@tpetzoldt.bsky.socialNov 8, 2026, 5:41 PM

Great news for dynamic modeling with #RStats! 🚀

Thanks to advances in #webR, @emscripten.org, and #LLVM, deSolve now compiles natively for the web. We can now solve systems of differential equations purely client-side in the browser via WebAssembly.

@r-foundation.bsky.social


Simplified web page screenshot with address: https://tpetzoldt.github.io/deSolve-webR/

Topright the hex sticker of the deSolve package with a Lorenz attractor and a symbolic integration formula.

On the left side the following code:

````
library("deSolve")

model <- function(t, y, parms) {
  with(as.list(c(y, parms)), {
    dA <- a * A - b * A * B
    dB <- c * A * B - d * B
    list(c(dA, dB))
  })
}

y0    <- c(A = 1, B = 0.5)
parms <- c(a = 0.1, b = 0.1, c = 0.1, d = 0.1)
yout  <- as.data.frame(ode(y = y0, times = 0:200, func = model, parms = parms))
plot(yout$time, yout$A, type = "l", col = "forestgreen", xlab="time", ylab="prey, predator")
lines(yout$time, yout$B, col = "red")
````

And on the right side, the graphical output of the model.