Bad result for inline R code in knitr #5483
-
I am trying to render a pdf that includes a table of results. To produce that table, I am accessing a list object and am trying to take the mean of a column and display that. However, the table shows that the result of those inline computations are NA. I have tried running the same code in an interactive R terminal and get the result I expected. It is only when I render the quarto document.
Here is the code to produce the table:
Here's a MRE of my
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Could you share a small working (reproducible) example to work with, i.e., a complete Quarto document? Thanks. In your case, maybe sharing a Git repository. PS: it seems to be tedious work here to generate the table, why not do that in R and output the table directly from R? |
Beta Was this translation helpful? Give feedback.
Sure, I'll just do it in R and send the table over. Thanks!