fix: use remotes::install_git() instead of pak::pak() for bincraft installation
Some checks failed
ci/crow/manual/build-all-versions-amd64/3 Pipeline failed
ci/crow/manual/build-all-versions-amd64/2 Pipeline failed
ci/crow/manual/build-all-versions-amd64/4 Pipeline failed
ci/crow/manual/build-all-versions-amd64/1 Pipeline failed
ci/crow/manual/build-all-versions-amd64/5 Pipeline failed

pak::pak() with git:: URLs fails with "subscript out of bounds" in the build environment.
This commit is contained in:
Patrick Schratz 2026-04-09 23:18:59 +02:00
commit c9040ee50a
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -64,7 +64,7 @@ steps:
- ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache
commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git"); packageVersion("bincraft")'
- R -q -e 'remotes::install_git("https://codefloe.com/rpkgs/bincraft.git"); packageVersion("bincraft")'
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
# Windows-only: 'RInno', 'KeyboardSimulator', 'R2PPT', 'RWinEdt', 'blatr', 'excel.link', 'spectrino', 'taskscheduleR', 'MDSGUI', 'BiplotGUI', 'R2wd', 'rFUSION', 'MediaNews', 'rFUSION', 'MediaNews'
# pkgs = readRDS('/mnt/cache/pkgs_amd64.rds');