Commit c3dae04
committed
Make 01_setup_native.sh actually fail on partial install failure
install.packages() failing for one package doesn't make Rscript exit
non-zero -- it just warns and continues -- so set -euo pipefail never
caught it, and the script printed "Setup complete" unconditionally
regardless of whether packages actually installed. Observed on Monsoon:
RcppEigen got OOM-killed under a low default srun --pty bash allocation
(no explicit --mem), which cascaded to ranger/reticulate/CodeCarbonR
itself all failing to install, and the script still reported success.
Now verifies installed.packages()/pandoc_available()/CodeCarbonR's own
namespace explicitly after each install step and stop()s (which does
exit non-zero) with a clear message if anything's still missing.1 parent b54a4a6 commit c3dae04
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
54 | 72 | | |
55 | 73 | | |
56 | 74 | | |
57 | | - | |
| 75 | + | |
| 76 | + | |
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
64 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
65 | 87 | | |
66 | 88 | | |
67 | 89 | | |
| |||
0 commit comments