Quarto documents eval=FALSE inconsistent with RStudio #4104
-
I have a Quarto document where I instruct readers on how code is presented in the guide. In RStudio I have the parameters That is, except if we move the parameter out of the curly brackets and into the other header format Related, but not granting another post is that when running "Run Above" and there are many chunks above, Positron will mess up the order of execution and it throws all kinds of errors when objects that haven't been created are called. This in documents where this functionality with "Run All Chunks Above" is working ok in RStudio. When clicking on "Run Cell" one by one in Positron, then no problems arise. Thank you for this great product. It's coming out great. Love its flexibility. Don't know if this is actually an issue. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I may not be quite understanding your problem regarding "Run Above". It is true that in Positron comments like this will not work:
Instead, you need to do this kind of hash pipe comment:
(Notice that it is For me, this works correctly for "Run Above" in Positron and "Run All Chunks Above" in RStudio. Can you clarify what you are seeing?
I suspect this bug is the same as #4068, and I will add this info there. Thank you for the report! |
Beta Was this translation helpful? Give feedback.
I may not be quite understanding your problem regarding "Run Above". It is true that in Positron comments like this will not work:
Instead, you need to do this kind of hash pipe comment:
(Notice that it is
false
, notFALSE
, since this is YAML and not R code.) If you have a lot of files to convert in this way, you may want to consider usingknitr::convert_chunk_header()
.For me, this works correctly for "Run Above" in Positron and "Run All Chunks Above" in RStudio. Can you clarify what you are seeing?