1

I'm outputting a simple variable in R Markdown. I tried different options to hide the R compiler line number, but it keeps displaying:

```{r echo=FALSE,warning=FALSE,message=FALSE}
var = 1000
```

This is my output: 
```{r echo=FALSE} 
print(r)
````

The output looks like this:

This is my output:
## [1] 1000

How can I get rid of ## [1]?

Mehdi Zare
  • 1,221
  • 1
  • 16
  • 32

0 Answers0