代码块通过簇标记r浮动到边距区域

代码块通过簇标记r浮动到边距区域,r,markdown,r-markdown,tufte,R,Markdown,R Markdown,Tufte,我对tuftemarkdown样式有问题 我的一些代码块格式不正确。换行符无法识别,文本浮动(这是正确的单词吗?)到注释和图像所在的侧区域 例如: --- title: "test" author: "user" date: "Now" output: tufte::tufte_handout: number_sections: yes toc: yes toc_depth: 1 --- Some test lines ```{r, eval=FALSE} re

我对
tufte
markdown样式有问题

我的一些代码块格式不正确。换行符无法识别,文本浮动(这是正确的单词吗?)到注释和图像所在的侧区域

例如:

---
title: "test"
author: "user"
date: "Now"
output:
  tufte::tufte_handout: 
    number_sections: yes
    toc: yes
    toc_depth: 1
---

Some test lines

```{r, eval=FALSE}
re_quantify_setting <- 
  parameters[,'Value'][parameters[,'Parameter'] == 'Re-quantify']
if(re_quantify_setting != 'False') {
  stop('Re-quantify was set to \'True\'! ',    
       'Please reanalyse data with correct MaxQuant settings.')
}
```

```{marginfigure}
Also a common problem is that people often just mark all lines of code and then 
just executing (Run) it. Here it might happen that an error occured at the beginning
of the script but was not seen by the user because code is executing so fast.  
This can be prevent by using the **Source**-button. The script will stop in case 
of an error message!
```
---
标题:“测试”
作者:“用户”
日期:“现在”
输出:
塔夫特:塔夫特大学讲义:
部分数量:是
toc:是的
toc_深度:1
---
一些测试线
```{r,eval=FALSE}

重新量化设置您可以禁用整理:

```{r, echo=FALSE}
knitr::opts_chunk$set(tidy=FALSE)
```

嗯,但这仍然没有中断,例如,在
@drmariod之后的第一行,我有一个新行。对不起,我没有注意这一行。我用一个适用于你的例子的替代方案更新了我的答案