Returns a minimal pagination info data.frame (with no sibling/footnote/etc info).

basic_pagdf(
  rnames,
  labs = rnames,
  rnums = seq_along(rnames),
  extents = 1L,
  rclass = "NA"
)

Arguments

rnames

character. Vector of row names

labs

character. Vector of row labels (defaults to names)

rnums

integer. Vector of row numbers. Defaults to `seq_along(rnames)`.

extents

integer. Number of lines each row will take to print,d efaults to 1 for all rows

rclass

character. Class(es) for the rows. Defaults to "NA"

Value

A data.frame suitable for use in both the `matrix_print_form` constructor and the pagination machinery

Examples


basic_pagdf(c("hi", "there"))
#>       label  name abs_rownumber  path pos_in_siblings n_siblings self_extent
#> hi       hi    hi             1    hi               1          1           1
#> there there there             2 there               1          1           1
#>       par_extent reprint_inds node_class indent nrowrefs ncellrefs nreflines
#> hi             0                      NA      0        0         0         0
#> there          0                      NA      0        0         0         0
#>       force_page page_title trailing_sep
#> hi         FALSE       <NA>         <NA>
#> there      FALSE       <NA>         <NA>