-
-
Notifications
You must be signed in to change notification settings - Fork 873
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
knitr::knit()
evaluates chunk if false value of eval
chunk option has a comment.
#2199
Comments
Thanks for the report. This is because we are using evaluate <- FALSE
comment(evaluate) <- "not today"
xfun::isFALSE(evaluate)
#> [1] FALSE
base::isFALSE(evaluate)
#> [1] TRUE |
@yihui I made a PR in case you think make |
This should be fixed by ccb07c4, which has been included in the latest CRAN release (v1.42). Thanks! |
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. |
Input:
```{r}
evaluate <- FALSE
comment(evaluate) <- "not today"
```
```{r, eval=evaluate}
str(knitr::opts_current$get("eval"))
```
```{r}
xfun::session_info('knitr')
```
Output:
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: