rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
401 stars 89 forks source link

default value argument not recognized as dependency #630

Closed aronatkins closed 3 years ago

aronatkins commented 3 years ago

Given a directory containing a single R script:

something <- function(dir = here::here()) {
  dir
}
something()

Packrat does not detect the dependency on here.

packrat:::dirDependencies(".")
# => character(0)
aronatkins commented 3 years ago

Extracted from https://github.com/rstudio/rsconnect/issues/499.