To see which packages are imported by any given package, we could visit the manual, and view under 'imports', or we could view the `DESCRIPTION` file if the repository is on github, but how can we do this using R code? 

For example, if such a function were called `imports()`, and it were called on the [rvest](https://cran.r-project.org/web/packages/rvest/rvest.pdf) package, then `imports(rvest)` would return something like 

```
[1] httr (>= 0.5), magrittr, selectr

```

Note: a less elegant way of seeing which packages a package imports could be to start a fresh R session, view the loaded packages, then load the package in question, and compare the lists (if there are many more loaded packages, those were imported by the package in question) - but I prefer not to use this method as it would require frequently starting a new R session.