Installing R packages available for all users

后端 未结 3 1749
野趣味
野趣味 2020-12-24 02:08

I have a few R packages installed under ~/R/i486-pc-linux-gnu-library/2.11.

I would like to make them, and any other R package I install from now on, a

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 03:14

    aL3xa answer is wrong; you shouldn't expose those directories to write for all users.
    Run R as a root (probably using sudo R) and then install packages as usual -- they will be placed in a global library and will be available for all users.

提交回复
热议问题