The Shiny internet framework for R is now formally out there in a WebAssembly (Wasm) model that runs in-browser and doesn’t require a back-end Shiny server, Posit CTO Joe Cheng introduced on the Posit::conf(2023) consumer convention at this time.
There are at the moment 3 ways to make use of this new R model of Shinylive (a Python model of Shinylive was introduced final 12 months):
- A brand new Shinylive R package deal has an export perform that may convert a neighborhood Shiny app.R software to a Shinylive software with an index.html file and extra belongings. That may then run as different typical HTML recordsdata.
- The Shinylive.io web site now has an R model the place customers can write and share apps instantly in browser, much like a website like JSFiddle for JavaScript.
- Shiny apps can now be included as {shinylive-r} code chunks inside Quarto paperwork utilizing the brand new Shinylive Quarto extension https://github.com/quarto-ext/shinylive.
IDGCheng cautioned that Shinylive for R continues to be new, and it might probably at the moment be gradual to obtain all the required R code to a consumer’s browser. That ought to pace up within the coming weeks, he mentioned. As well as, not all packages and features are instantly out there, apps can’t join on to databases (though API calls may fit), and all code and information is absolutely accessible to finish customers, so there’s no approach to disguise issues like API keys.
You could find out extra within the GitHub repository for Cheng’s presentation.
Copyright © 2023 IDG Communications, Inc.

