This is used to implement print() for the sedonadb_dataframe or can be used to explicitly preview if options(sedonadb.interactive = FALSE).

sd_preview(.data, n = NULL, ascii = NULL, width = NULL)

Arguments

.data

A sedonadb_dataframe or an object that can be coerced to one.

n

The number of rows to preview. Use Inf to preview all rows. Defaults to getOption("pillar.print_max").

ascii

Use TRUE to force ASCII table formatting or FALSE to force unicode formatting. By default, use a heuristic to determine if the output is unicode-friendly or the value of getOption("cli.unicode").

width

The character width of the output. Defaults to getOption("width").

Value

.data, invisibly

Examples

sd_sql("SELECT 1 as one") |> sd_preview()
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │  one  │
#> │ int64 │
#> ╞═══════╡
#> │     1 │
#> └───────┘
#> Preview of up to 6 row(s)