Minimise discussion of other langs

(since it's so fresh)
This commit is contained in:
hadley 2016-08-22 10:13:17 -05:00
parent 57395ed7a4
commit 37aca6f3ff
2 changed files with 2 additions and 22 deletions

View File

@ -178,25 +178,3 @@ Learn more about Shiny at the [Shiny Development Center](http://shiny.rstudio.co
## Books
The bookdown package extends R Markdown to create book length documents, like *R for Data Science*, which was written with R Markdown and bookdown. To learn more about bookdown, see the free ebook [Authoring Books with R Markdown](https://bookdown.org/yihui/bookdown/) or [www.bookdown.org](www.bookdown.org).
## Other Languages
[knitr](http://yihui.name/knitr/) can execute code in many languages besides R, which makes it easy to write R Markdown files that use multiple languages. Some of the available language engines include:
* Python
* SQL
* Bash
* Rcpp
* Stan
* JavaScript
* CSS
To process a code chunk using an alternate language engine, replace the `r` at the start of your chunk declaration with the name of the language:
`r chunk`{python}
x = 'hello, python world!'
print(x.split(' '))
`r chunk`
Note that chunk options like `echo` and `results` are all valid when using a language engine like python.

View File

@ -12,6 +12,8 @@ R Markdown documents rely on several technologies that go beyond R functions. To
* Go to *File > Help > Markdown Quick Reference* to open the *Markdown Quick Reference* in your help pane.
(Note that the name RMarkdown is slightly misleading because you can use it with other languages, not just R. RMarkdown has recently added support for Python and SQL, and that support will improve over time. To use a different language in code chunk, just replace the `r` in ```` ```{r} ```` with `python` or `sql`.)
### Prerequisites
You will need the __rmarkdown__ package, but RStudio will automatically install it for you, and load it when needed.