Search code examples
rterminal

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?


Solution

  • 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.