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
#!/bin/bash | |
## Rmarkdown has an engine for native python code, but | |
## knitr::spin (which facilitates dual report/script | |
## functionality without code duplication by translating | |
## from .R to .Rmd) doesn't. | |
## Luckily, we don't need to parse anything, just convert | |
## markdown annotations to plain text, and code chunks to | |
## rmarkdown format. | |
## Note that, unlike with knitr::spin, code not in chunks |