Skip to contents

$ and [[ read a session: text, value, values, usage, cost, history, messages, model, mode, status, reason, id, kind, file, turns, envir, children, ext, plan, last_rewind, editor_text, and the names of child sessions. Sessions are changed only through peter() and the gptr_*() verbs, so $<- and [[<- signal gptr_error_readonly. A team's text joins its members' reports under ### <name> (<model>) headings, where a member that did not finish says (ended with status <status>); a fan-out's is a named vector of its children's texts, printed under the same headings; and value is the named list of their values, until the team or fan-out is continued with peter(): then text is its own answer and value its own value once a turn designates one, while each member's stay at x$<name>$text and x$<name>$value. Usage a provider did not report stays unknown: cost is NA when the cost of any request is unknown, as for a model without prices. envir is the session's kept workspace: NULL for a session started inside a function without envir = (a function frame is never kept), whose later turns evaluate in their caller's frame. history is the complete recorded-message table with a concise display, like summary(x). Use print(x$history, n = Inf) to show all rows or as.data.frame(x$history) to obtain an ordinary data frame.

Usage

# S3 method for class 'gptr_session'
x$name

# S3 method for class 'gptr_session'
x[[i, ...]]

# S3 method for class 'gptr_session'
x$name <- value

# S3 method for class 'gptr_session'
x[[i]] <- value

# S3 method for class 'gptr_session'
names(x)

# S3 method for class 'gptr_session'
.DollarNames(x, pattern = "")

Arguments

x

A gptr_session.

name, i

A member name; [[ also takes an integer index into children.

...

Unused.

value

Refused.

pattern

A regular expression for .DollarNames().

Value

The member's value; names() and .DollarNames() return the member names.