LondonRob LondonRob - 3 months ago 76
R Question

argument "destdir" is missing, with no default

In my Linux Mint 17 terminal, I start

R
simple by typing:

> R


Then, when I do
install.packages('foo')
, I get:

argument "destdir" is missing, with no default


How should I choose my
destdir
? And why is it not set by default?

Answer

On my system at least, uninstalling the rbase package resolved this problem (presumably because the system then 'fell back' to some default version):

apt remove r-base

Now I get the following:

bash > R
> install.packages('foo')
Installing package into β€˜/home/rob/R/x86_64-pc-linux-gnu-library/3.1’
(as β€˜lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---

And the installation proceeds as expected.