rcloud.call.notebook {rcloud.support}R Documentation

Execute code contained in a notebook

Description

rcloud.call.notebook executes a notebook - essentially the equivalent of source for notebooks.

Usage

rcloud.call.notebook(id, version = NULL, args = NULL, attach = FALSE)

Arguments

id

string, ID of the notebook to call

version

version of the notebook to call or NULL to call the latest version

args

list of arguments to make avaialbe to the notebook or an enviroment to evalue the notebook in

attach

logical, if TRUE then the environment in which the notebook was evaluate will be attached to the search path - making its results available

Details

rcloud.call.notebook retrieves the notebook specified by id and version and evaluates the contents of all R cells. Note that all other types of cells (such as Markdown, Python, etc.) are currently ignored.

The notebook is either evaluated in args if args is an environment, or a new environment (with .GlobalEnv as parent) is created and populated with the elements of args. If attach is TRUE then this environment is attached to the search path after evaluation.

Value

Last value of the evaluated notebook.

Author(s)

Simon Urbanek


[Package rcloud.support version 2.3-1 Index]