Skip to content

Commit

Permalink
add curl os dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Sep 21, 2023
1 parent 2ef42a8 commit 7035fd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pkgup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
path: ${{ env.R_LIBS_USER }}/*
key: library-cache-${{ github.run_id }}
restore-keys: library-cache
- name: setup-os-dependencies
run: |
sudo apt-get install -y libcurl4-openssl-dev
- name: setup-r-dependencies
run: |
Rscript -e 'stopifnot(file.copy("DESCRIPTION", file.path(tdir<-tempdir(), "PACKAGES"))); db<-available.packages(paste0("file://", tdir)); deps<-setdiff(tools::package_dependencies(read.dcf("DESCRIPTION", fields="Package")[[1L]], db, which="most")[[1L]], installed.packages(priority="high")[,"Package"]); if (length(deps)) { ap<-available.packages()[,"Version"]; ap<-ap[names(ap) %in% deps]; if (!all(deps%in%names(ap))) stop("dependencies are not avaiable in repository: ",paste(setdiff(deps, names(ap)), collapse=", ")); ip<-installed.packages()[,"Version"]; ip<-ip[names(ip) %in% deps]; pkgs<-ap[deps]>ip[deps]; install.packages(names(pkgs[pkgs|is.na(pkgs)]), INSTALL_opts="--html") }'
Expand Down

0 comments on commit 7035fd7

Please sign in to comment.