Commit d7fc52e
committed
Lockdir prefix for install packages
Some distributed file systems do not support opening files in append
mode. These file systems are often used in data analysis cloud
platforms.
R package installation relies on appending to files, for instance
collating R code or when installing help pages.
Therefore, packages can't be installed in those filesystems. Instead,
users are forced to install packages into a local directory and
copy them afterwards.
However, the current package installation procedure already uses
a 00LOCK directory to install packages there, before copying them
to the final library directory.
By globally modifying the location of the 00LOCK directory, it is
possible to use a local filesystem to install packages, where
append is allowed. The installation process takes care of copying
the resulting package into the final out directory.
This change introduces the environment variable PKG_LOCKDIR_PREFIX
that, when set to a directory like "/tmp/r-lockdir", uses that
root path to create all 00LOCK folders.
This allows to install packages on file systems that do not support
opening files in append mode.1 parent d3f7a18 commit d7fc52e
1 file changed
+28
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
| |||
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
108 | | - | |
109 | | - | |
| 124 | + | |
| 125 | + | |
110 | 126 | | |
111 | 127 | | |
112 | 128 | | |
| |||
134 | 150 | | |
135 | 151 | | |
136 | 152 | | |
137 | | - | |
| 153 | + | |
138 | 154 | | |
139 | 155 | | |
140 | 156 | | |
| |||
478 | 494 | | |
479 | 495 | | |
480 | 496 | | |
481 | | - | |
| 497 | + | |
482 | 498 | | |
483 | 499 | | |
484 | 500 | | |
| |||
1041 | 1057 | | |
1042 | 1058 | | |
1043 | 1059 | | |
1044 | | - | |
| 1060 | + | |
1045 | 1061 | | |
1046 | | - | |
| 1062 | + | |
1047 | 1063 | | |
1048 | 1064 | | |
1049 | 1065 | | |
| |||
1073 | 1089 | | |
1074 | 1090 | | |
1075 | 1091 | | |
1076 | | - | |
| 1092 | + | |
1077 | 1093 | | |
1078 | 1094 | | |
1079 | | - | |
| 1095 | + | |
1080 | 1096 | | |
1081 | 1097 | | |
1082 | 1098 | | |
| |||
2373 | 2389 | | |
2374 | 2390 | | |
2375 | 2391 | | |
2376 | | - | |
| 2392 | + | |
| 2393 | + | |
2377 | 2394 | | |
2378 | 2395 | | |
2379 | 2396 | | |
| |||
2418 | 2435 | | |
2419 | 2436 | | |
2420 | 2437 | | |
2421 | | - | |
| 2438 | + | |
| 2439 | + | |
2422 | 2440 | | |
2423 | 2441 | | |
2424 | 2442 | | |
| |||
0 commit comments