File: pillar.md

package info (click to toggle)
r-cran-dbplyr 2.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,644 kB
  • sloc: sh: 13; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# custom header

    Code
      # Number of rows is shown
      x <- memdb_frame(a = 1:3) %>% filter(a > 0)
      setup <- pillar::tbl_format_setup(x)
      tbl_format_header(x, setup)[[1]]
    Output
      [1] "# Source:   SQL [3 x 1]"
    Code
      # Number of rows still can't be shown
      x <- memdb_frame(a = 1:11) %>% filter(a > 0)
      setup <- pillar::tbl_format_setup(x)
      tbl_format_header(x, setup)[[1]]
    Output
      [1] "# Source:   SQL [?? x 1]"