::: {.cell hash='02_R_introduction_cache/revealjs/unnamed-chunk-126_9a58930e25f88c805c975d11f5e9315a'}

```{.r .cell-code}
my_func <- function(arg1, arg2, named_arg3 = 42) {
  # Do things with arguments
  # The last statement is the return value
  # you can also use the explicit `return(value)` to do early returns
}
```
:::