remove stale pak cache
This commit is contained in:
parent
f7fbbe68c3
commit
c1a364cfe7
2 changed files with 5 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -45,6 +45,9 @@ steps:
|
|||
# download latest package version (avoid having to rebuild image every time)
|
||||
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git .
|
||||
- rm -rf /mnt/cache/R-pkgs/00LOCK-r-pkg-binaries /mnt/cache/R-pkgs/00LOCK-bincraftR /opt/R/*/lib/R/library/RPostgres /mnt/cache/R-pkgs/00LOCK-RPostgres
|
||||
# for some reason paks pkgcache is often corrupt
|
||||
- rm -rf /mnt/cache/R-pkgs/pkgcache/ /mnt/cache/pkgcache/ /root/.cache/R/
|
||||
- R -q -e 'pak::meta_update()'
|
||||
- rm -rf /mnt/cache/R-pkgs/RPostgres /mnt/cache/pkgcache/R/pkgcache
|
||||
- R -q -e 'install.packages("RPostgres", repos = structure(c(devxy = "https://cran.devxy.io/${ARCH}/${PKGS_ID}/latest", CRAN = "https://cloud.r-project.org")))'
|
||||
- R CMD INSTALL .
|
||||
|
|
|
|||
Loading…
Reference in a new issue