Opens data in VisiData through the Terminal application on macOS. If the input is an sf object, the geometry column will be dropped before viewing.

view_vd(data, type = "csv")

Arguments

data

A data.frame, tibble, or sf object to view

type

Either "csv" or "json" format for writing the temporary file. Use "json" for preserving list-columns.

Value

Returns the input data invisibly

Details

This function only works in interactive sessions on macOS. It creates a temporary file and opens it in VisiData through the Terminal application. The temporary filename includes a timestamp for identification.

Examples

if (FALSE) { # \dontrun{
# View a data frame
mtcars %>% view_vd()

# View with custom title
mtcars %>% view_vd(title = "Car Data")

# View with list columns preserved
nested_df %>% view_vd(type = "json")
} # }