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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -