From 539bd88f02842105fb79f2b8004e2d6f9b25316b Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Mon, 24 Jun 2024 08:39:32 -0400 Subject: [PATCH] Work with both old and new versions. --- man/matrix_form.tabular.Rd | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/man/matrix_form.tabular.Rd b/man/matrix_form.tabular.Rd index fd1257e..fc21529 100644 --- a/man/matrix_form.tabular.Rd +++ b/man/matrix_form.tabular.Rd @@ -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]]