You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I show 'mtcars' in the code chunk after the render but not 'rmarkdown::paged_table(mtcars)' and in addition to that have only the result of the paged_table() shown?
I remember @jaredlander also requested this feature eight or nine years ago at a Strata conf (time flies), i.e., evaluate and echo different lines of code in the same chunk. I didn't do it because I thought it would be a little tricky to implement, and also felt like "cheating" :) Since this was brought up again, I think we can reconsider implementing it. Basically, after evaluate()ing the code, we remove the ## from the source code expressions with indices setdiff(iss, iss[ev]); or we use a special comment like #~ / #* etc to mask the code instead of ##, then simply remove these comment masks (this will be a little easier implementation-wise).
@cderv Do you want to try it, or you would rather me do it? I won't have time until a few weeks later.
Tested from quarto-dev/quarto-cli#863 (comment)
At first I tried
but it will add a
##
prefix, without option to opt-outknitr/R/block.R
Lines 235 to 240 in ca398c2
I would have thought this could be equivalent of this
I already encountered this in demo slide when trying to show an example I think. Would it be interesting to add chunk option to allow this ?
Maybe the longer form in two chunks is enough... 🤔
The text was updated successfully, but these errors were encountered: