-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
option to hide child code warning #2191
Comments
I guess you can put the code in another chunk with options |
That's also true of course but making it 2 chunks just to be able to show it in RStudio as the RStudio Visual Editor does not execute the child documents when you click on that run button creates code duplication. |
Essentially what you really want is the ability to run a code chunk with the That said, I'm open to adding a global option to suppress this warning (perhaps a shorter option name like |
Indeed, and I had the impression by skimming a bit online that this will not be supported in the near future. So that's why I ended up here. Thanks. I'll create a pull request to add |
…the there are child documents in a chunk and the chunk still contains code (which is not executed) (#2194) Co-authored-by: Yihui Xie <xie@yihui.name>
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Hello,
I would like to be able to have the option to remove this warning at
knitr/R/block.R
Lines 59 to 62 in ff3d767
which generates something like this:
Reason of this is I would like to have the possibility to have a chunk which looks as follows
If so, what would be the preferred option name that I can use in this pull request?
knitr.hide.child.code.warning
?thanks
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: