Created
June 20, 2022 17:07
-
-
Save charliejhadley/2492a8313b2e1df707b68a5493bab79d to your computer and use it in GitHub Desktop.
force-not-eval.Rmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_hooks$set(force_not_eval = function(value) { | |
value$eval <- FALSE | |
value | |
} | |
) | |
knitr::opts_chunk$set(force_not_eval = TRUE) | |
``` | |
```{r, eval=TRUE} | |
2 + 2 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to Garrick Aden-Buie for the solution https://twitter.com/grrrck/status/1538925669756944384?s=20&t=0dGrha89MGjf_2b4AV2BDQ