Hi,
I wanted to upgrade the repr package in Debian. Unfortunately there are some admittedly strange issues where diff creates some differences that do not really look like different strings. The test suite output starts with
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_escaping.r:49'): LaTeX escaping in matrices works ────────────
repr_latex(matrix(c("[", "{", "%", "#"), 2, 2, TRUE)) (`actual`) not identical to "A matrix: 2 × 2 of type chr\n\\begin{tabular}{ll}\n\t {[} & \\{\\\\\n\t \\% & \\#\\\\\n\\end{tabular}\n" (`expected`).
lines(actual) | lines(expected)
[1] "A matrix: 2 x 2 of type chr" - "A matrix: 2 × 2 of type chr" [1]
[2] "\\begin{tabular}{ll}" | "\\begin{tabular}{ll}" [2]
[3] "\t {[} & \\{\\\\" | "\t {[} & \\{\\\\" [3]
[4] "\t \\% & \\#\\\\" | "\t \\% & \\#\\\\" [4]
── Failure ('test_escaping.r:56'): LaTeX escaping in matrices works ────────────
repr_latex(...) (`actual`) not identical to "A matrix: 2 × 2 of type chr\n\\begin{tabular}{r|ll}\n & \\% & \\textbar{}\\\\\n\\hline\n\t\\$ & {]} & \\}\\\\\n\t\\# & \\& & \\_\\\\\n\\end{tabular}\n" (`expected`).
lines(actual) | lines(expected)
[1] "A matrix: 2 x 2 of type chr" - "A matrix: 2 × 2 of type chr" [1]
[2] "\\begin{tabular}{r|ll}" | "\\begin{tabular}{r|ll}" [2]
[3] " & \\% & \\textbar{}\\\\" | " & \\% & \\textbar{}\\\\" [3]
[4] "\\hline" | "\\hline" [4]
── Failure ('test_escaping.r:68'): HTML escaping in matrices works ─────────────
repr_html(matrix(c("[", "{", "%", "#"), 2, 2, TRUE)) (`actual`) not identical to "<table class=\"dataframe\">\n<caption>A matrix: 2 × 2 of type chr</caption>\n<tbody>\n\t<tr><td>[</td><td>{</td></tr>\n\t<tr><td>%</td><td>#</td></tr>\n</tbody>\n</table>\n" (`expected`).
lines(actual)[1:5] vs lines(expected)[1:5]
"<table class=\"dataframe\">"
- "<caption>A matrix: 2 x 2 of type chr</caption>"
+ "<caption>A matrix: 2 × 2 of type chr</caption>"
"<tbody>"
"\t<tr><td>[</td><td>{</td></tr>"
"\t<tr><td>%</td><td>#</td></tr>"
Feel free to find the full build log in the Debian CI.
Kind regards, Andreas.
Hi,
I wanted to upgrade the repr package in Debian. Unfortunately there are some admittedly strange issues where diff creates some differences that do not really look like different strings. The test suite output starts with
Feel free to find the full build log in the Debian CI.
Kind regards, Andreas.