### Week 6 — R Packages

```md
Can you think of packages you have used that are very large or very small?
Why do you think they contain many or few functions?
```

```md
How do the ideas of outside-in and inside-out function design relate to package design?
```

```md
`devtools::load_all()` reloads your package without restarting R, whereas
`source()`-ing a file just runs it in the global environment. Did you notice a
difference in behaviour when using `load_all()`? What does it tell you about
how packages work differently from plain scripts?
```

```md
Writing roxygen2 documentation (`@param`, `@returns`, `@examples`) forces you to
describe your function from a user's perspective before you've finished writing it.
Did documenting a function change how you thought about its interface or arguments?
```

---
