Regardless of whether I run R
or sudo R
, when I then run install.packages("name")
the packages always gets installed into /home/james/R/...
as opposed to a system library.
(I need the packages in the system library so that Shiny Server can find them)
How do I make R install into the system library instead of a user specific one?