Basic reprex is to create a folder with the following files:
test.R:
test.qmd:
---
format: html
---
```{r}
library(tidyverse)
The following is the observed behavior when scanning from that directory:
pak::scan_deps()
Dependencies:
- rmarkdown @ test.qmd
- tidymodels @ test.R
- tidyverse @ test.qmd
pak::scan_deps("test.qmd", "./")
pak::scan_deps("test.R", "./")
pak::scan_deps(c("test.qmd","test.R"), "./")
In previous versions (not sure when this broke) of pak the latter three calls would have returned the file specific dependencies.