I would like to use R Markdown on a large project. The project uses a number of very large self-defined functions. I therefore would like to use markdown to comment on certain parts of the function.
```{r}
my_function <- function(x,y){
test <- x + seq(1,10)
```
Then I would like to use Markdown to describe the second part of the function
```{r}
output <- test + y
return(output)
}
```
And then I would like to apply the function
```{r}
my_function(1,2)
```
Of course I realise that I could simply use the # symbol to add a comment, but this is not as nice as markdown. This is relevant e.g. for large shiny server functions or something of the sort. Any ideas how I could do this?
