ramikrispin,
@ramikrispin@mstdn.social avatar

(1/2) Deploy a Shinylive App ✨ to Github Pages tutorial 👇🏼

I created this tutorial a day after the announcement of the shinylive R version at the Posit conference, using a dev version of the shinylive and httpuv packages. It was on my TODO list for quite a while to update the tutorial with the stable version of the core packages. Thanks to a PR from Ronak Shah 🙏🏼, I updated the tutorial and the supporting Docker 🐳.

#shiny #rstats #docker #shinylive #github #githubpages

video/mp4

ramikrispin,
@ramikrispin@mstdn.social avatar

(2/2) I did not benchmark it, but it seems that the app load time is faster 🏎️compared with the initial shiny live version.

Resources 📚
Tutorial 📖: https://medium.com/p/b4cbd433bdc
Code 🛠️: https://github.com/RamiKrispin/shinylive-r
App 📱: https://ramikrispin.github.io/shinylive-r/

jrosell,
@jrosell@mastodon.social avatar

@ramikrispin ~40s?

ramikrispin,
@ramikrispin@mstdn.social avatar
jrosell,
@jrosell@mastodon.social avatar

@ramikrispin for me it loads now in 40 seconds aproximately, is that what it's expected?

ramikrispin,
@ramikrispin@mstdn.social avatar

@jrosell not sure what is the expected time, on my end it took ~5s

jrosell,
@jrosell@mastodon.social avatar

@ramikrispin thanks. I tried on my mobile phone, I will latter try in my desktop. Less than 10s should be ok in UX terms.

leoni,

@jrosell @ramikrispin The first time it usually takes much longer. It has to download a lot of files to run R. Should be faster on later tries.

ramikrispin,
@ramikrispin@mstdn.social avatar

@leoni @jrosell The load time on the old version was very slow regardless if it was first time or not. Not sure what is happening in the backend but happy to that it significantly faster.

jrosell,
@jrosell@mastodon.social avatar

@ramikrispin @leoni from my desktop 40s the first time and 20s the second time.

ramikrispin,
@ramikrispin@mstdn.social avatar

@jrosell @leoni most likely there is some caching by the browser

  • All
  • Subscribed
  • Moderated
  • Favorites
  • github
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Durango
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ethstaker
  • JUstTest
  • cubers
  • cisconetworking
  • normalnudes
  • modclub
  • everett
  • osvaldo12
  • GTA5RPClips
  • Leos
  • anitta
  • tester
  • provamag3
  • megavids
  • lostlight
  • All magazines