I have a problem with knitting in R. If a chunk has something that needs to be printed, the chunk gets split in two and the result is shown under each piece of code, as you can see in the following image:
So, I want every result to be shown together at the end of the chunk. Is there a way to do that?
Something like the following:
```{r echo=T, eval=FALSE}
message("hello")
message("world")
```
\#\# hello
\#\# world