Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan R etc. code for package dependencies #390

Open
19 of 52 tasks
gaborcsardi opened this issue Oct 22, 2024 · 1 comment
Open
19 of 52 tasks

Scan R etc. code for package dependencies #390

gaborcsardi opened this issue Oct 22, 2024 · 1 comment

Comments

@gaborcsardi
Copy link
Member

gaborcsardi commented Oct 22, 2024

Like renv:::dependencies()

Features:

  • UI about auto-scanning and the dependencies found.

Discovery in R code:

  • methods
  • xfun
  • library, require
  • requireNamespace, loadNamespace
  • ::, :::
  • pacman
  • modules
  • import
  • box
  • targets
  • glue
  • ggplot2
  • parsnip
  • testthat
  • knitr
  • database
  • Rmd YAML header?

Other files:

  • DESCRIPTION (?)
  • NAMESPACE (?)
  • bookdown
  • pkgdown
  • quarto
  • renv.lock
  • rsconnect
  • .Rproj
  • .qmd
  • .Rprofile
  • .rmd
  • .rmarkdown
  • .rnw
  • .ipynb

Other features:

  • .gitignore
  • .renvignore
  • hard coded ignores:
    ignored <- c("packrat", "renv", "revdep", "vendor", if (depth) c("DESCRIPTION", "NAMESPACE"))
  • Report errors?
  • Find project root
  • renv.config.dependencies.limit ?
  • Should we pick up renv's options and env vars? IDK.
  • warning about many files?
  • renv.ignore knitr chunk param
  • engine knitr chunk param, ignore if not r or rscript
  • eval knitr chunk param, ignore if not truthy
  • exercise knitr chunk param, ignore if truthy
  • skip chunks whose labels end in '-display'
  • make if works on a vector of files
  • add root argument
  • progress bar

Config options from https://rstudio.github.io/renv/reference/config.html:

  • renv.config.dependency.errors
  • renv.config.dependencies.limit
  • renv.config.install.remotes

Docs:

  • Document for deps:: as well.
@gaborcsardi
Copy link
Member Author

Partially addressed by #388. Rest will be in subsequent PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant