Skip to contents

An object of this class handles the communication with an R process. There is usually one main session, but there may also sessions for detached code cells.

Super classes

processx::process -> callr::r_session -> RKernel::RSessionBase -> RKernelSession

Public fields

help_port

The port number of HTML help.

yield

An optional function to service kernel requests

kernel

The reference to the controlling kernel object

Methods

Inherited methods


Method connect()

Connect the session with the main Kernel object

Usage

RKernelSession$connect(yield, kernel)

Arguments

yield

The function that is called when the session objects yields back control to the kernel object, for example in order to wait for comm message when a widget is active.

kernel

The main kernel objectd


Method setup()

Set up the R session, by installing hooks etc.

Usage

RKernelSession$setup()


Method start_graphics()

Start a httpgd devide and make sure its contents are sent by the kernel to the frontend.

Usage

RKernelSession$start_graphics()


Method clone()

The objects of this class are cloneable with this method.

Usage

RKernelSession$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.