diff --git a/rmarkdown-exts.Rmd b/rmarkdown-exts.Rmd index 621eaa4..bfb2ae4 100644 --- a/rmarkdown-exts.Rmd +++ b/rmarkdown-exts.Rmd @@ -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. diff --git a/rmarkdown.Rmd b/rmarkdown.Rmd index dce26c8..c479751 100644 --- a/rmarkdown.Rmd +++ b/rmarkdown.Rmd @@ -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.