pak::scan_deps() empty results when given file path(s)

Open
#844 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Reproduce the behavior with test.R and test.qmd using pak::scan_deps() on the directory and on the listed file paths. Trace the scan_deps entry point to determine why file-specific scans return no output; done means the three file-path calls report the dependencies from their respective files.

Written by the indexing model from the issue text.

Description

Basic reprex is to create a folder with the following files:

test.R:

library(tidymodels)

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.
Dominant language
C
Stars
821
Forks
88
Avg merge
17m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/pak

All issues in r-lib/pak

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.