Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCloud as a Package #2749

Open
gordonwoodhull opened this issue Nov 18, 2020 · 1 comment
Open

RCloud as a Package #2749

gordonwoodhull opened this issue Nov 18, 2020 · 1 comment

Comments

@gordonwoodhull
Copy link
Contributor

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:

  • originally I thought it would build everything to dist/ including dist/htdocs/ but this breaks ordinary usage. Now I think the ordinary build should generate htdocs/ (cleanly separating sources from artifacts for build release tarballs with artifacts, delete them from repo #1728) and there should be another command to build the package.
  • since $ROOT is the package root, this tries to write to the package's run/ directory, which is wrong and bad. Need to separate writeable directory from $ROOT, or else copy everything to a temp directory.
  • this copies all of conf/ haha bad

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

@gordonwoodhull
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant