I use Rmarkdown and Knitr using Rstudio.
Listed below are both print script and output in html.
```{r} summary(cars) ```
However, the following will only output the output, which is an inline chart.
```{r, echo=FALSE} plot(cars) ```
I have a situation different from the previous one, I want to present a script, but should not be launched in html, since it will take a very long time (hours, if not days) to run. So what I just did was comment mark was marked.
```{r} #summary(cars) ```
But I need a better way to do this. Is there a better way to present a script without running it.
source share