I am using the following code to insert text in rmarkdown.
```{r, results='asis', echo=FALSE, warning=FALSE, message=FALSE}
cat("#", "We", "\n")
```
He worked well and gave me a way out
However, when I inserted some R code into this snippet, for example:
```{r, results='asis', echo=FALSE, warning=FALSE, message=FALSE}
x <- 1:100
mean(x)
cat("#", "We", "\n")
}
```
then he gave me the conclusion:
# [1] 50.5 # We
In this case, is Weno longer the title.
source
share