Last active
December 24, 2015 06:09
-
-
Save stla/6754920 to your computer and use it in GitHub Desktop.
Inline R code in a child file recursively called - See output at http://pagist.github.io/?6755031
This file contains hidden or 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
| Define `x`: | |
| ```{r} | |
| x <- LETTERS[1:5] | |
| i <- 1 | |
| ``` | |
| ```{r child, child="sub.Rmd"} | |
| ``` |
This file contains hidden or 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
| Current component of `x`: | |
| ```{r} | |
| x[i] | |
| ``` | |
| ```{r, echo=FALSE} | |
| i <- i+1 | |
| ``` | |
| ```{r, child="sub.Rmd", eval=i<=5} | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment