George Stagg

122 Followers
30 Following
22 Posts
Mathematician. Software Engineer. I like making things.

Since it was super tough to understand how R's protection mechanism can work with Rust, I wrote a blog post before I get burned out completely🔥 #rstats

Wannabe Rstats-fu - R, Rust, Protect, And Unwinding
https://yutani.rbind.io/post/r-rust-protect-and-unwinding/

Wannabe Rstats-fu - R, Rust, Protect, And Unwinding

It's #TidyTuesday, so time for another weekly data project for #rstats, and this week it's using @weecology's long-term data on mammal abundance:

https://github.com/rfordatascience/tidytuesday/blob/master/data/2023/2023-05-02/readme.md

Since it's our data and I'm really into #WebR right now (inspired by @hrbrmstr) I made it so you can participate right in the browser and learn a bit about #WebR while you're there:

https://tidytuesday.weecology.org/

#WebR + #Quarto + #TidyTuesday #FTW

Read on to find out more about the dataset and #WebR 🧵

tidytuesday/readme.md at master · rfordatascience/tidytuesday

Official repo for the #tidytuesday project. Contribute to rfordatascience/tidytuesday development by creating an account on GitHub.

GitHub
Yay, my #positconf2023 talk proposal was accepted! I'm super excited to get back up there to talk about how webR's JavaScript library works, and show off some of the things it can do that I believe feels like absolute magic🪄💫 pos.it/conf
For those R fans waiting patiently for a version of shinylive.io for R, here is a little sneak preview of the progress we've made recently. This is a screen capture showing an editable R Shiny app, running without a Shiny server, on Wasm via Shinylive and webR😀 #RStats #wasm
@hrbrmstr You’re making the default webR REPL app look bad 😅 Great work!!
@hrbrmstr I think you’ll have seen most of the currently existing JavaScript representations of R objects now. The only other trick I can think off the top of my head that you might not have seen is looping over R objects with ‘for await…of’ syntax: https://docs.r-wasm.org/webr/latest/convert-r-to-js.html#looping-over-r-vectors
WebR - R in the Browser - Convert R Objects to JavaScript

@hrbrmstr Have you tried this yet? It's my absolute favourite thing to do in webR. Though I should probably think more about named arguments...
@hrbrmstr It's currently tricky to run the wasm build of R outside of the web or node.js, due to how some of our patches to R assume that a JS environment is available, and the way that Emscripten implements some C features. I wrote a little more about this at https://github.com/r-wasm/webr/issues/166 in the context of building R for WASI in the future. It should be possible to have an R.bin.wasm standalone from the web, just not quite yet.
Discussion: Would it be possible to have a webR standalone version? · Issue #166 · r-wasm/webr

Good afternoon. I have a question about the possibility of using WebR server-side (possibly with WASI): Is there any expectation (or plan) to generate a WebR WebAssembly Standalone version? Or if t...

GitHub

I've been playing around with using #WebR and #Quarto for client-side interactive lesson material and it's amazing! All the R code (including #TidyVerse 📦) is running in the user's browser, so no server setup, resources, or security to worry about.

Demo Website: https://interactive-lessons.weecology.org/
GitHub: https://github.com/ethanwhite/datacarp-interactive

Huge thanks to @hrbrmstr for sharing all of this awesomeness this week(end). Checkout his new blog post on this: https://rud.is/b/2023/03/12/almost-bare-bones-webr-starter-app/

#OER #rstats

Interactive Data Lessons - Experimental interactive version of Data Carpentry for Biologists

@winston_chang @hrbrmstr The format is a little strange and verbose because we have initially prioritised accuracy. Consider, for example, an R list of two values with the same name, list(foo=1, foo=2). The obvious conversion to something like a JS object would fail because you’d likely lose one of the values: { foo: 2 }. Going forward I expect that we’ll probably add methods and toJs() args to return R objects in different formats based on user feedback like this