Replies: 2 comments 11 replies
-
Would it be possible to have a fully reproducible example? EDIT: Below a reproducible example for standalone HTML document (from https://bookdown.org/yihui/rmarkdown-cookbook/read-chunk.html) in which it works. See the code.
|
Beta Was this translation helpful? Give feedback.
-
An alternative to I think Quarto shortcodes are processed before computations happen, so you could theoretically either include the content of a single chunk, like:
Or include one or more chunks as a `.qmd file:
(You might need to confirm that my understanding is correct, though!) EDIT: my bad! @cscheid says Lua filters happen after knitr/jupyter. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a book chapter in which I have the R code in a separate file
shared.R
inknitr::read_chunk
's expected format, e.g.Then in the
.qmd
file:to run the code. I'm getting an error that a data table created inside
foo
is not found when a later R code piece inshared.R
that uses that data table is invoked from.qmd
.Before submitting a bug report with a reproducible example is
Quarto
intended to do this, when doing a book?Beta Was this translation helpful? Give feedback.
All reactions