Description Usage Arguments Details Examples
Create an alias for a Docker R markdown engine
1 |
name |
The name of a new Docker R markdown engine |
... |
Options for the new Docker R markdown engine |
For example, after writing
1 | docker_alias("ubuntu", image="ubuntu:latest", command="bash")
|
you can use ```{ubuntu} instead of ```{r engine="docker", image="ubuntu:latest", command="bash"} to process R markdown chunks through Ubuntu bash using Docker
The alias name must consist entirely of letters, digits, and underscores, or else 'knitr' will not recognize it as a valid code chunk in R markdown.
1 | docker_alias("ubuntu", image="ubuntu:latest", command="bash")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.