Skip to content

Commit

Permalink
Install packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan authored Jun 13, 2024
1 parent 500b3a9 commit 3fe0c3c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
- name: Install packages
run: |
options(repos = c(
CRAN = "https://cloud.r-project.org"
))
options(repos = c(CRAN = "https://cloud.r-project.org"))
library(magrittr)
Expand Down Expand Up @@ -91,8 +89,6 @@ jobs:
lapply("[[", "Package") %>%
unlist()
# My universes packages
dieghernan <- jsonlite::read_json("https://dieghernan.r-universe.dev/api/packages") %>%
lapply("[[", "Package") %>%
Expand All @@ -110,8 +106,6 @@ jobs:
dieghernan, ropenspain, ropengov
)))
# Check packages not installed yet
instpack <- as.character(installed.packages()[, "Package"])
toinstall_init <- setdiff(all, instpack)
Expand All @@ -129,6 +123,8 @@ jobs:
toinstall <- toinstall_init[toinstall_init %in% pakav$Package]
message("Installing ", length(toinstall), " packages")
install.packages("toinstall")
shell: Rscript {0}


Expand Down

0 comments on commit 3fe0c3c

Please sign in to comment.