這樣的事情,但它不工作:是否可以使用engine =「bash」在knitr塊之間共享變量?
```{r examples, engine="bash"}
export EXAMPLES="example/path"
```
```{r example1, engine="bash"}
echo $EXAMPLES
```
這個工作,但是:
```{r examples2, engine="bash"}
export EXAMPLES="example/path"
echo $EXAMPLES
```
你想要提交一個錯誤報告:https://github.com/yihui/knitr/issues – Dason
只是FYI,現在可以使用runr軟件包:https://github.com/yihui/runr但是在將它集成到knitr之前,我仍然需要磨光它(例如http://rpubs.com/yihui/bash-knitr) –