view_create
Create an enhanced view of R objects in the browser
Opens an interactive, browser-based viewer for R objects with syntax highlighting, tabbed interfaces, and enhanced data table support. Handles data frames, plots, lists, functions, and more with appropriate rendering for each type.
Usage
view_create(x, title = NULL, max_rows = 5000)
Arguments
| Argument | Description |
|---|---|
x
|
The data to view (data.frame, plot, list, function, or other R object) |
title
|
Optional title for the view. If NULL, uses the object name. |
max_rows
|
Maximum number of rows to display for data frames (default: 5000). Large data frames are automatically truncated with a warning. |
Returns
Invisibly returns NULL. Function is called for its side effect of opening a browser window with the rendered view.
Examples
# View a data frame with interactive table
view_create(mtcars)
# View a plot
library(ggplot2)
p <- ggplot(mtcars, aes(mpg, hp)) + geom_point()
view_create(p, title = "MPG vs HP")
# View a list with YAML and R structure tabs
view_create(list(a = 1, b = 2, c = list(d = 3)))
Source: R/framework_view.R