Skip to content

Commit

Permalink
Split by fixed |. Never drop pak
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Feb 14, 2024
1 parent deed324 commit 82fe10c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup-r-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ runs:
installed_df <- as.data.frame(installed.packages(), stringsAsFactors = FALSE)
installed_packages <- installed_df$Package
core_pkgs <- installed_packages[!is.na(installed_df$Priority)]
pak_pkgs <- strsplit("${{ steps.install-pkgs.outputs.packages }}", "|")[[1]]
pak_pkgs <- c(
"pak",
strsplit("${{ steps.install-pkgs.outputs.packages }}", "|", fixed = TRUE)[[1]]
)
to_remove_pkgs <- setdiff(installed_packages, c(core_pkgs, pak_pkgs))
print("installed_packages:")
Expand Down

0 comments on commit 82fe10c

Please sign in to comment.