install bincraftR from git repo

This commit is contained in:
Patrick Schratz 2024-11-22 19:42:08 +01:00
commit 37a48b8b81
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -24,9 +24,8 @@ steps:
# download latest package version (avoid having to rebuild image every time)
# rscript_startup arg: required to pass down global option to future workers https://github.com/HenrikBengtsson/future/issues/134#issuecomment-2245666169
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git .
- rm -rf /mnt/cache/packages/*
- rm -rf /mnt/cache/R-pkgs/stringr
- R CMD INSTALL .
# - rm -rf /mnt/cache/packages/*
- R -q -e 'packageVersion("bincraftR")'
- R -q -e 'pak::pak(c("pat-s/desc@description-from-remote", "pat-s/cranlike@s3"))'
- cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()'