As stated in the comments, I will answer my question.
If you look at the Yihui documentation for formatR , you will notice that the roxygen comments (which look like this: #' ) will not be wrapped in any way.
So using a piece of code
```{r, tidy = T} myfun=function(a,b){ #' ^_^ #' {o,o} #' |)__) #'-----mm----- c=sum(a,b) return(c) } ```
will give me the desired result:
myfun = function(a, b) {
source share