Answers for "R Markdonw - Hide plots"

R
0

R Markdonw - Hide plots

# Hide source code:

```{r, echo=FALSE}
1 + 1
```

# Hide text output (you can also use `results = FALSE`):

```{r, results='hide'}
print("You will not see the text output.")
```

# Hide messages:

```{r, message=FALSE}
message("You will not see the message.")
```

# Hide warning messages:

```{r, warning=FALSE}
# this will generate a warning but it will be suppressed
1:2 + 1:3
```

# Hide plots:

```{r, fig.show='hide'}
plot(cars)
```
Posted by: Guest on July-21-2020

Browse Popular Code Answers by Language