Main

Main entry point functions.

register()

Register the interpreter

start()

Start the interpreter

stop_()

Stop the interpreter

Interpreter

An interpreter for nodes in executable documents that contain R code.

Interpreter

Interpreter

Servers

Alternative servers for providing access to an interpreter from other, possibly remote, processes.

Server

Server

StreamServer

StreamServer

StdioServer

StdioServer

JSON-RPC

Classes implementing the JSON-RPC 2.0 specification for remote procedure calls.

json-rpc

Classes for JSON-RPC 2.0

JsonRpcRequest$create

Create a JSON-RPC request.

JsonRpcRequest$hydrate

Hydrate a list into a JSON-RPC request.

JsonRpcRequest$parse

Parse JSON into a JSON-RPC request

JsonRpcRequest

JSON-RPC request

JsonRpcResponse$create

Create a JSON-RPC response.

JsonRpcResponse$hydrate

Hydrate a list into a JSON-RPC response.

JsonRpcResponse$parse

Parse JSON into a JSON-RPC response

JsonRpcResponse

JSON-RPC response

JsonRpcError

JSON-RPC error

JsonRpcErrorCode

List of JSON-RPC 2.0 error codes

Message streams

Functions for reading and writing length prefixed messages to and from streams.

stream

Functions for encoding and decoding length prefixed messages over streams

stream_read_message()

Read a length prefixed message from a stream.

stream_read_message_cpp()

Read a length prefixed message from a stream.

stream_read_varint()

Read a varint from a stream

stream_write_message()

Write a length prefixed message to a stream.

stream_write_message_cpp()

Write a length prefixed message to a stream

stream_write_varint()

Write a varint to a stream

Logging

Functions for emitting and handling log entries.

logger()

Create a logger

default_log_handler()

Default log handler

get_log_handler()

Get the log handler

set_log_handler()

Set the log handler

Other

Other utility functions.

home_dir()

Get the Stencila home directory.

tmp_dir()

Get the Stencila temporary directory.

negate()

Negate a function

filter()

Filter an object

map()

Map a function across entries in an object

transform()

Create a transformation of a object by recursively applying a function to it. Could be called deepMap.

reduce()

Execute a reducer function on each item in a collection

string_match()

Extract regex matches from a string

string_right()

Get characters on the right on a string

string_split()

Split a string

as_scalar()

Declare that a node is scalar

decode()

Decode an R value to a Stencila Node

decode_datatable()

Decode an R data.frame to a Stencila Datatable

decode_datatable_column()

Decode a R vector to a Stencila DatatableColumn

globals

Package globals

json

Functions for JSON handling