::: {.cell hash='02_R_introduction_cache/pdf/unnamed-chunk-126_304ecfe6435bdd58fc6ca0d770264865'}

```{.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
}
```
:::