If you use messagein your function instead print, you can suppress the message
```{r}
f <- function() {
message("Some printing")
return(1)
}
res <- f()
print(res)
```
either explicitly with suppressMessages:
```{r}
res <- suppressMessages(f())
print(res)
```
or using the message=FALSEchunk option :
```{r, message=FALSE}
res <- f()
print(res)
```
, . print, ( ) capture.output :
```{r}
f <- function() {
print("Some printing")
return(1)
}
trash <- capture.output(res <- f())
print(res)
```
... .