2015-10-15 52 views
2

我想知道是否有可能直接在句子中嵌入R markdown结果如下:Rmarkdown - 嵌入在一个句子

让我们想象一下,这是我的R markdown文件

--- 
title: "R markdown is great" 
author: "Giacomo" 
date: "15 Oct 2015" 
output: pdf_document 
--- 

The mean number of `disp` is 

```{r} 
mean(mtcars$disp) 
``` 
and the ... 

所以我得到

enter image description here

是否有可能产生类似

enter image description here

+0

\ disp \的平均数是\ mean意思(disp)\'。 – Benjamin

+0

哇我不知道我们可以做到这一点!惊人。你能否回答我可以解决这个问题。谢谢 – giacomo

回答