79752278

Date: 2025-09-01 07:59:41
Score: 0.5
Natty:
Report link

Thanks iroha, for your answer, and for clarifying my question. You're right, it's a problem with the interactive rendering. (The "clever but unorthodox" approach was developed by a T.A., so I can take no credit.)

Rendering from the console works just fine. I just hate having two separate files: one with the RMD and one with the code for rendering it twice.

I did try all sorts of variations on knit_print, also to no avail.

Using the editor_options in the YAML does seem to work with ciAUC(), but doesn't seem to help with describeBy(). My workaround for describeBy() has been to use the mat = TRUE argument, save it to an object, and then knitr::kable() the object, though I think I'll switch to Tim G's workaround.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: BiostatsTeacher