I am not able to suppress the echo of roc command (pROC package) despite setting echo to FALSE in the code chunk. the roc commands outputs "call" and "data" lines to the pdf. Can anyone help me figure out how to turn it off?
---
title: "ROC echo"
output: pdf_document
---
```{r,echo=F,warning=F,message=F, comment=NA, results='asis',fig.width=10}
library(pROC)
data(iris)
iris$setosa <- ifelse(iris$Species=="setosa","setosa","not setosa")
iris.roc <- roc(setosa ~ Sepal.Width,data =iris)
plot.roc(iris.roc)
```
Note that
echo
only effects the printing of the source code according to knitr documentation, not the output of R commands:What you really want is
results='hide'
instead of'asis'
: