Skip to content

Commit

Permalink
Work with both old and new versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Jun 24, 2024
1 parent aa80bf9 commit 539bd88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions man/matrix_form.tabular.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ if (requireNamespace("formatters")) {
}
# This gives the breaks by columns, counting the
# row label columns:
bycol <- formatters::vert_pag_indices(mform, cpp = 30, rep_cols = 2,
# row label columns.
# The formatters::vert_pag_indices function had an incompatible
# change in v0.5.8
if (packageVersion("formatters") >= "0.5.8")
bycol <- formatters::vert_pag_indices(mform, cpp = 30, rep_cols = 2,
fontspec = formatters::font_spec())
else
bycol <- formatters::vert_pag_indices(mform, cpp = 30, rep_cols = 2)
# Display the table with both kinds of breaks
for (i in seq_along(byrow)) {
rows <- byrow[[i]]
Expand Down

0 comments on commit 539bd88

Please sign in to comment.