|
| 1 | +# [description] |
| 2 | +# |
| 3 | +# Installs a pinned set of packages that worked together |
| 4 | +# as of the last R 3.6 release. |
| 5 | +# |
| 6 | + |
| 7 | +.install_packages <- function(packages) { |
| 8 | + install.packages( # nolint: undesirable_function |
| 9 | + pkgs = paste( # nolint: paste |
| 10 | + "https://cran.r-project.org/src/contrib/Archive" |
| 11 | + , packages |
| 12 | + , sep = "/" |
| 13 | + ) |
| 14 | + , dependencies = FALSE |
| 15 | + , lib = Sys.getenv("R_LIBS") |
| 16 | + , repos = NULL |
| 17 | + ) |
| 18 | +} |
| 19 | + |
| 20 | +# when confronted with a bunch of URLs like this, install.packages() sometimes |
| 21 | +# struggles to determine install order... so install packages in batches here, |
| 22 | +# starting from the root of the dependency graph and working up |
| 23 | + |
| 24 | +# there was only a single release of {praise}, so there is no contrib/Archive URL for it |
| 25 | +install.packages( # nolint: undesirable_function |
| 26 | + pkgs = "https://cran.r-project.org/src/contrib/praise_1.0.0.tar.gz" |
| 27 | + , dependencies = FALSE |
| 28 | + , lib = Sys.getenv("R_LIBS") |
| 29 | + , repos = NULL |
| 30 | +) |
| 31 | + |
| 32 | +.install_packages(c( |
| 33 | + "brio/brio_1.1.4.tar.gz" # nolint: non_portable_path |
| 34 | + , "cli/cli_3.6.2.tar.gz" # nolint: non_portable_path |
| 35 | + , "crayon/crayon_1.5.2.tar.gz" # nolint: non_portable_path |
| 36 | + , "digest/digest_0.6.36.tar.gz" # nolint: non_portable_path |
| 37 | + , "evaluate/evaluate_0.23.tar.gz" # nolint: non_portable_path |
| 38 | + , "fansi/fansi_1.0.5.tar.gz" # nolint: non_portable_path |
| 39 | + , "fs/fs_1.6.4.tar.gz" # nolint: non_portable_path |
| 40 | + , "glue/glue_1.7.0.tar.gz" # nolint: non_portable_path |
| 41 | + , "jsonlite/jsonlite_1.8.8.tar.gz" # nolint: non_portable_path |
| 42 | + , "lattice/lattice_0.20-41.tar.gz" # nolint: non_portable_path |
| 43 | + , "magrittr/magrittr_2.0.2.tar.gz" # nolint: non_portable_path |
| 44 | + , "pkgconfig/pkgconfig_2.0.2.tar.gz" # nolint: non_portable_path |
| 45 | + , "ps/ps_1.8.0.tar.gz" # nolint: non_portable_path |
| 46 | + , "R6/R6_2.5.0.tar.gz" # nolint: non_portable_path |
| 47 | + , "rlang/rlang_1.1.3.tar.gz" # nolint: non_portable_path |
| 48 | + , "rprojroot/rprojroot_2.0.3.tar.gz" # nolint: non_portable_path |
| 49 | + , "utf8/utf8_1.2.3.tar.gz" # nolint: non_portable_path |
| 50 | + , "withr/withr_3.0.1.tar.gz" # nolint: non_portable_path |
| 51 | +)) |
| 52 | + |
| 53 | +.install_packages(c( |
| 54 | + "desc/desc_1.4.2.tar.gz" # nolint: non_portable_path |
| 55 | + , "diffobj/diffobj_0.3.4.tar.gz" # nolint: non_portable_path |
| 56 | + , "lifecycle/lifecycle_1.0.3.tar.gz" # nolint: non_portable_path |
| 57 | + , "processx/processx_3.8.3.tar.gz" # nolint: non_portable_path |
| 58 | +)) |
| 59 | + |
| 60 | +.install_packages(c( |
| 61 | + "callr/callr_3.7.5.tar.gz" # nolint: non_portable_path |
| 62 | + , "vctrs/vctrs_0.6.4.tar.gz" # nolint: non_portable_path |
| 63 | +)) |
| 64 | + |
| 65 | +.install_packages(c( |
| 66 | + "pillar/pillar_1.8.1.tar.gz" # nolint: non_portable_path |
| 67 | + , "tibble/tibble_3.2.0.tar.gz" # nolint: non_portable_path |
| 68 | +)) |
| 69 | + |
| 70 | +.install_packages(c( |
| 71 | + "pkgbuild/pkgbuild_1.4.4.tar.gz" # nolint: non_portable_path |
| 72 | + , "rematch2/rematch2_2.1.1.tar.gz" # nolint: non_portable_path |
| 73 | + , "waldo/waldo_0.5.3.tar.gz" # nolint: non_portable_path |
| 74 | +)) |
| 75 | + |
| 76 | +.install_packages(c( |
| 77 | + "pkgload/pkgload_1.3.4.tar.gz" # nolint: non_portable_path |
| 78 | + , "testthat/testthat_3.2.1.tar.gz" # nolint: non_portable_path |
| 79 | +)) |
0 commit comments