Skip to content

Commit

Permalink
Minor hack to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ikosmidis committed May 22, 2018
1 parent e8b04c5 commit 2eac9e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/build_network.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ build_network.cranly_db <- function(object = clean_CRAN_db(),
object, by = "package", all.x = TRUE)

base_packages <- utils::installed.packages(priority = "high")
base_package_names <- base_packages[, "Package"]
base_package_names <- unique(base_packages[, "Package"])

inds <- which(base_package_names %in% nodes$package)
nodes[nodes$package %in% base_package_names, "priority"] <- base_packages[inds, "Priority"]

Expand Down

0 comments on commit 2eac9e5

Please sign in to comment.