Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of some knitr tables produced by knit_print has changed #806

Open
Puzzled-Face opened this issue Apr 8, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Puzzled-Face
Copy link
Collaborator

Perhaps as a side effect of PR #804, the formatting of some knitr tables have changed. The issue appears to affect tables that represent slots whose values are themselves crmPack objects (possibly sub-classes of DataGeneral in particular). The values reported are unchanged and correct: it is just the appearance of the tables that has changed. For example...

Previously:
image

Currently:
image

The culprit is likely to be:
image

@Puzzled-Face Puzzled-Face added the bug Something isn't working label Apr 8, 2024
@Puzzled-Face
Copy link
Collaborator Author

The solution might be to change format_func from format_func = function(x) x to (eg)

format_func = function(z) {
    kableExtra::kable_styling(
      z,
      bootstrap_options = c("striped", "hover", "condensed")
    )
  }

See knit_print for NextBestNCRMLoss in helpers_knitr_NextBest.R (lines 480-485 at the time of writing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant