sd_preview.RdThis 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)A sedonadb_dataframe or an object that can be coerced to one.
The number of rows to preview. Use Inf to preview all rows.
Defaults to getOption("pillar.print_max").
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").
The character width of the output. Defaults to
getOption("width").
.data, invisibly
sd_sql("SELECT 1 as one") |> sd_preview()
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │ one │
#> │ int64 │
#> ╞═══════╡
#> │ 1 │
#> └───────┘
#> Preview of up to 6 row(s)