You can write code in languages other than R with R Markdown, e.g.

Bash

ls *.Rmd
## 4-languages.Rmd

Python

x = 'hello, python world!'
print(x.split(' '))
## ['hello,', 'python', 'world!']