Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight version of R and shiny for efficient app deployment?

Tags:

r

shiny

Is there any way to make the R + shiny build smaller, so as to make it more light weight when deploying shiny apps? (or plumber API's, or any other R processes for that matter?)

Background

I have been deploying shiny apps in kubernetes and the builds are quite a lot larger than similar apps written in other languages (e.g. python).

I've also deployed some to heroku, and they're also quite large builds (in the hundreds of MB, whereas other similar apps in other languages might only be a few tens of MB).

What I know so far

I know base R is quite large, but packages are the bulk of the build size, so I have reduced those as much as possible by not importing anything unnecessary, and extracting some functions from their packages so as to not have to include the whole thing.

like image 955
stevec Avatar asked Nov 17 '25 12:11

stevec


1 Answers

I think leprechaun is the best option (as in easy AND light) out there right now. It's purpose is to be similar to golem, but without making the heavy requirements of golem. (link to the docs https://github.com/devOpifex/leprechaun/tree/master/docs)

like image 51
David Muñoz Tord Avatar answered Nov 20 '25 02:11

David Muñoz Tord