r - Including git code in the rmarkdown documents while using bookdown -


is there way possible include code different languages in rmarkdown documents while authoring books using bookdown package? have looked @ knitr option engine possible values python, awk/gawk , executable path can set using engine.path.

```{r, engine='python'} print "will code chunk hidden?" ``` 

however, insert code (eg: git) in rmarkdown document without executing it.

for example, including in markdown documents

```git git init ``` 

if don't want code executed, can embed like:

``` code not executed ``` 

you can have code highlighting in specific languages:

```css my_css{}  ``` 

for git command, execution terminal, can highlight with:

```sh git init ``` 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -