Skip to content

Commit

Permalink
normalized paths and stop filtering R explicitly (already filtered as…
Browse files Browse the repository at this point in the history
… base)
  • Loading branch information
aronatkins committed Dec 20, 2021
1 parent dc65e05 commit db9b317
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions R/dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ dirDependenciesRenv <- function(dir) {
# TODO: add rsconnect as an ignored directory? May not be an issue for
# bundling, since we don't include the rsconnect directory.

deps <- renv$dependencies(path = dir, root = dir, quiet = TRUE)
absDir <- normalizePath(dir)
deps <- renv$dependencies(path = absDir, root = absDir, quiet = TRUE)
pkgs <- unique(deps$Package)
# remove accidents.
# https://github.com/rstudio/renv/issues/858
pkgs <- setdiff(pkgs, c("R"))
## Exclude recommended packages if there is no package installed locally
## this places an implicit dependency on the system-installed version of a package
## Exclude recommended packages (and the artifical "R" package) if there is
## no package installed locally this places an implicit dependency on the
## system-installed version of a package
pkgs <- dropSystemPackages(pkgs)
pkgs
}
Expand Down

0 comments on commit db9b317

Please sign in to comment.