File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ USER ${NB_USER}
29
29
30
30
# When run at build-time, install.r automagically handles any necessary apt-gets
31
31
COPY install.r /tmp/install.r
32
- RUN Rscript /tmp/install.r && sudo chgrp -R users /usr/lib/R/site_library
32
+ RUN Rscript /tmp/install.r
33
+ RUN ls -l /usr/lib/R && sudo chgrp -R users /usr/lib/R/site-library
33
34
34
35
35
36
COPY vscode-extensions.txt /tmp/vscode-extensions.txt
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ R_HOME=$(R RHOME)
40
40
# echo "suppressMessages(bspm::enable())" >> /root/.Rprofile
41
41
42
42
# packages installed by root / bspm will go in /usr/lib/R/site-library
43
- chown root:staff ${R_HOME} /site-library
43
+ chown root:users ${R_HOME} /site-library
44
44
chmod g+ws ${R_HOME} /site-library
45
45
46
46
# to avoid permission clashes, user-installed packages go in /usr/local/lib/R/site-library
47
47
chown ${NB_USER} :users /usr/local/lib/R/site-library
48
- usermod -a -G staff ${NB_USER}
48
+ usermod -a -G users ${NB_USER}
49
49
50
50
ln -s /usr/lib/R/site-library/littler/examples/install2.r /usr/local/bin/install2.r
51
51
You can’t perform that action at this time.
0 commit comments