att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
430 stars 142 forks source link

RCloud as a Package #2749

Open gordonwoodhull opened 3 years ago

gordonwoodhull commented 3 years ago

The idea is to encapsulate just the http server with scripts, and the websocket with ocaps, as a package which can be loaded in base R in order to run code that would otherwise need a standing RCloud server.

It would run only in anonymous mode, with no notebook support. Instead, code will which would be in the notebook is run after the webpage is spawned. (Haven't figured out this part yet - wrap in function? generate script? or is there something more elegant?)

I pushed a working but messy strawman implementation to the rcloud-as-a-package branch.

Needs work:

However, it does run. Hope to return to this soon.

gordonwoodhull commented 3 years ago

This isn't really RCloud, it's really Rserve + rserve.js + basic ocap functionality. If it works we could refactor further, to eliminate the nonworking notebook ocaps.