rawr_view: View data

rawr_viewR Documentation

View data

Description

Convenience functions to use the base R data viewer (View2 always invokes View instead of the rstudio viewer) or the default browser (view which can open html or widgets in the browser or to view data frame- or matrix-like objects using datatable.

Usage

View2(x, title)

view(x, use_viewer = FALSE, ...)

Arguments

x

an R object which can be coerced to a data frame with non-zero numbers of rows and columns or an htmlwidget object

title

title for viewer window, defaults to name of x prefixed by Data:

use_viewer

logical; if TRUE, opens in the viewer if available; otherwise, opens in the default browser

...

additional arguments passed to datatable

Examples

## Not run: 
## data frame-like objects
View2(mtcars)
view(mtcars)

## html
view(htmlTable::htmlTable(mtcars))

## widgets
view(qtlcharts::iplot(1:5, 1:5))

## End(Not run)


raredd/rawr documentation built on March 4, 2024, 1:36 a.m.