How to show code but hide output in RMarkdown?

前端 未结 6 544
生来不讨喜
生来不讨喜 2020-12-13 01:58

I want my html file to show the code, but not the output of this chunk:

```{r echo=True, include=FALSE}
fun <- function(b)
    {
    for(a in b)
        {         


        
6条回答
  •  时光说笑
    2020-12-13 02:40

    For what it's worth.

    ```{r eval=FALSE}
    

    The document will display the code by default but will prevent the code block from being executed, and thus will also not display any results.

提交回复
热议问题