Debian Codegraph @

src/results-examples/r-install-dependencies

raw symbols SCIP
1 #!/usr/bin/env Rscript
2 # ==========================================================================
3 # _ _ _ ____ ____ _____
4 # | | | (_) _ \ ___ _ __ / ___|___ _ _|_ _| __ __ _ ___ ___ _ __
5 # | |_| | | |_) / _ \ '__| | / _ \| '_ \| || '__/ _` |/ __/ _ \ '__|
6 # | _ | | __/ __/ | | |__| (_) | | | | || | | (_| | (_| __/ |
7 # |_| |_|_|_| \___|_| \____\___/|_| |_|_||_| \__,_|\___\___|_|
8 #
9 # --- High-Performance Connectivity Tracer (HiPerConTracer) ---
10 # https://www.nntb.no/~dreibh/hipercontracer/
11 # ==========================================================================
12 #
13 # High-Performance Connectivity Tracer (HiPerConTracer)
14 # Copyright (C) 2015-2026 by Thomas Dreibholz
15 #
16 # This program is free software: you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
18 # the Free Software Foundation, either version 3 of the License, or
19 # (at your option) any later version.
20 #
21 # This program is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 # GNU General Public License for more details.
25 #
26 # You should have received a copy of the GNU General Public License
27 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28 #
29 # Contact: [email protected]
30
31
32 # ====== Basic options ======================================================
33 # NOTE: Adapt CRAN mirror, if useful!
34 dir.create(path = Sys.getenv("R_LIBS_USER"), showWarnings = FALSE, recursive = TRUE)
35
36 options(repos = "https://cran.uib.no/", # https://cran.stat.auckland.ac.nz/
37 Ncpus = parallel::detectCores(),
38 lib = Sys.getenv("R_LIBS_USER"))
39
40 # ====== Download and install packages from CRAN ============================
41
42 # Update all installed CRAN packages:
43 update.packages(ask = FALSE, lib = Sys.getenv("R_LIBS_USER"))
44
45 # Install required CRAN packages:
46 # Alternatives:
47 # * Ubuntu/Debian: sudo apt install -y r-cran-data.table r-cran-digest r-cran-dplyr r-cran-nanotime r-cran-xtable
48 # * Fedora: sudo dnf install -y R-data.table R-digest R-dplyr R-nanotime R-xtable
49 # * FreeBSD: sudo pkg install -y R-cran-data.table R-cran-digest R-cran-dplyr R-cran-nanotime(MISSING!) R-cran-xtable
50 install.packages("data.table", lib = Sys.getenv("R_LIBS_USER"))
51 install.packages("digest", lib = Sys.getenv("R_LIBS_USER"))
52 install.packages("dplyr", lib = Sys.getenv("R_LIBS_USER"))
53 install.packages("nanotime", lib = Sys.getenv("R_LIBS_USER"))
54 install.packages("xtable", lib = Sys.getenv("R_LIBS_USER"))