qstr: Graphical display of object structure

Description Usage Arguments Value Author(s)

View source: R/qstr.R

Description

qstr creates a widget displaying the structure of an arbitrary R object. The default method simply shows the output of print(x) in a text area. Table like objects are shown using qdataview.

The methods for lists and environments allow recursive examination of elements using a QSplitter. The method for environments allows a simple REPL to be started with the correspoding environment as its evaluation environment.

qbrowser leverages the list method to provide a simple object browser. qrecover similarly provides a graphical replacement for recover, and may be used as the "error" option for interactive debugging.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
qstr(x, ...)
## Default S3 method:
qstr(x, ...)
## S3 method for class 'QWidget'
qstr(x, ...)
## S3 method for class 'data.frame'
qstr(x, ...)
## S3 method for class 'matrix'
qstr(x, ...)
## S3 method for class 'function'
qstr(x, ...)
## S3 method for class 'list'
qstr(x, ...)
## S3 method for class 'environment'
qstr(x, ...)

qbrowser(namespaces = FALSE)

qrecover()

Arguments

x

An R object.

...

Further arguments. Passed on as appropriate.

namespaces

Logical flag indicating whether loaded but unattached namespaces should be included.

Value

A QWidget instance.

Author(s)

Deepayan Sarkar


qtutils documentation built on May 29, 2017, 5:54 p.m.

Related to qstr in qtutils...