New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R Markdown chunk option evaluated even though suppressed with the eval.after knit option #9407
Comments
|
@wlandau just curious to know more: So, for the IDE to get the same as knitr behavior, it seems it would mean to respect Try 'Run All' (CTRL + ALT + R), and you will get not error I think (because I just wanted to clarify so that this goes in the right category regarding better respect of knitr option to have better coherent behavior between knitting and interectively evaluating. |
Yes. I have custom chunk options But I do not know how to stop the IDE from evaluating these options.
In my case, I would actually prefer that users do not need to set |
|
Oh I see ! The part about the engine having full control helped me understand. |
|
Also related to #8149 I believe. Trying to cross link every issue in this "better knitr option support" topic |
|
I am also in a similar situation. I am using KnitR in RStudio. Blocks are still being evaluated, even when eval = FALSE has been specified. This is surely a fundamental issue with KnitR within RStudio, and I am surprised it has not been addressed. |
System details
Steps to reproduce the problem
I created the following minimal R Markdown report.
When I click the green arrows in sequential order, the R console prints "Error in map(data) : could not find function "map".
Describe the problem in detail
I am trying to create an R-Markdown interface for the
targetsR package: ropensci/targets#469. As part of this new feature, I need to suppress the automatic evaluation of certain customknitrchunk options, includingpatternandcue. I can do so when running the report using the Knit button in the IDE. However, when I click the green arrows for the chunks in the report above, the R console prints "Error in map(data) : could not find function "map", and the error interrupts the customknitrlanguage engines I am trying to define.When I do a traceback, the error seems to come from
.rs.scalarListFromList(). The function succeeds whenexpressions = FALSE. Is there anyway to make sureexpressions = FALSEwhen I run these kinds of chunks interactively?Describe the behavior you expected
The
patternchunk option should be treated as a language object and not evaluated as R code.The text was updated successfully, but these errors were encountered: