I'm setting up a new laptop running Gentoo and wish to install R (as I do on all of my computers!).

However, I've hit a bit of a problem when it comes to installing packages.

I first tried to:

> install.packages(c("ggplot2", "plyr", "reshape2"))

And it duly downloaded all of the packages and its dependencies. However they didn't install reporting.

Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted
Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library

Not a problem I'll just install the data.table package, unfortunately...

> install.packages("data.table")
trying URL 'http://cran.uk.r-project.org/src/contrib/data.table_1.8.2.tar.gz'
Content type 'application/x-gzip' length 818198 bytes (799 Kb)
opened URL
==================================================
downloaded 799 Kb

Error in library(data.table) : there is no package called ‘data.table’
Calls: .First -> library
Execution halted

The downloaded source packages are in
    ‘/tmp/RtmpbQtALj/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html  ... done
Warning message:
In install
Edit
Report