我不太了解Rstudio笔记本中块的放置。我需要知道如何使大块和减价结果以与原始文档相同的顺序显示,并能够使用include=
大块选项控制其中的内容。
---
title: "Test markdown"
output:
html_notebook: default
---
```{r, setup, include=FALSE}
# set default chunk options:w
knitr::opts_chunk$set(echo = FALSE, include = FALSE, fig.width = 8, collapse = TRUE, warning = FALSE)
```
Note 0
```{r}
# Comment
c <- 92461110
m <- 7056556
```
```{r, include=TRUE}
c
```
Note 1
```{r}
paste("Nothing")
```
Note 2
```{r,include=TRUE}
paste("Something")
```
```{r, include=TRUE}
paste("something else")
```
我应该得到
Test Markdown
Note 0
92461110
Note 1
Note 2
[1] "Something"
[1] "Something else"
反而我得到
Test markdown
Note 0
Note 1
Note 2
[1] "Nothing"
[1] "Something"