Skip to content

Commit

Permalink
Update action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Feb 14, 2024
1 parent b9cd043 commit 7434095
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup-r-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,12 @@ runs:
cat("::group::Prune unnecessary packages\n")
installed_df <- as.data.frame(installed.packages(), stringsAsFactors = FALSE)
installed_packages <- installed_df$Package
core_pkgs <- installed_packages[!is.na(installed_df$Priority)]
core_pkgs <- c(
"translations", # Core package on windows
installed_packages[!is.na(installed_df$Priority)]
)
pak_pkgs <- c(
"pak",
"pak", # Never remove pak
strsplit("${{ steps.install-pkgs.outputs.packages }}", "|", fixed = TRUE)[[1]]
)
to_remove_pkgs <- setdiff(installed_packages, c(core_pkgs, pak_pkgs))
Expand Down

0 comments on commit 7434095

Please sign in to comment.