-
Feature:
notebook.RHTTP entry point added. It usespath.infoto match a notebook name and (optionally) a file within the notebook. Possible uses:/notebook.R/<notebook-hash> /notebook.R/<notebook-hash>/<version-hash> /notebook.R/<notebook-hash>/<filename> /notebook.R/<notebook-hash>/<version-hash>/<filename> /notebook.R/<user>/<notebook-name> /notebook.R/<user>/<notebook-name>/<filename>To avoid ambiguity usernames should not match exactly
[0-9a-f]{20}and filenames should not match exactly[0-9a-f]{40}since hashes have higher priority than names.All above uses that end with
<filename>will attempt to fetch the file of that name from the notebook. All other uses call the corresponding notebook, i.e. return the evaluation result.KNOWN BUG:
notebook.Rcurrently ignores all RMarkdown cells, so if you mix R content into your cells, they will currently be ignored.NOTE: notebook.R supersedes call.R, file.R and by.name.R that existed in the development version performing partial opeartions.
-
Convention: the
notebook.Rentry point is used for general RPC into R. Documentation for notebooks that are intended to be used asnotebook.Rtargets should be in the form of RMarkdown cells, so thatview.html?notebook=Xshows the documentation fornotebook.R/X. -
Feature: the HTTP server supports partial path matching, .i.e,
/foo.R/bar/geecan matchfoo.Rfile in which case the rest of the path is stored inpath.infoandfoo.Ris evaluated. If the path is a complete match,path.infoisNULL. In both casesself.pathvariable will contain the path that matches the path to the script being run. -
Feature:
tmpfileresult type is now supported inrcloud.call.FastRWeb.notebook -
Feature: File upload now supports upload-to-notebook. When the "upload to notebook" checkbox is selected, the file is uploaded to the github gist instead of to the local filesystem. As a result, it can be seen by anyone, regardless of permissions. This can be used to install custom stylesheets (as per feature description below)
-
Feature: Notebook interests (the set of notebooks you find interesting enough to keep close) is now denoted by starring and unstarring notebooks. We now explicitly keep the user-notebook-starring relation so we can do recsys things with it in the future.
-
Feature: In view mode (view.html), appending &quiet=1 will hide the navbar and greeting message. This makes it easier for view.html URLs to be effectively used as iframes in different websites.
-
Feature: In view mode (view.html), rcloud inserts any stylesheets present in the notebook into the main document. Currently, the only way to add stylesheets to a notebook is to directly edit the github gist. This will change in the near future.
-
Feature: added a
github.user.whitelistoption to rcloud.conf to allow only a subset of Github users to login to any given rcloud deployment. If no whitelist is given, all users are allowed in
- Bugfix:
rcloud.call.notebookwould break on arguments with empty names (e.g.?fooquery string when usingnotebook.R)
- v0.8 release created