I\'m having problem installing any package, also from package archive. In this case showing error trying to install ggplot2:
* installing *source* package ‘g
Thank you Dirk, your advice to install the package via the ubuntu terminal solved my problem as well: I had an almost identical error message when I was trying to install reshape2 on Ubuntu 15.10.
I just,
1) uninstalled the currently installed version of reshape2 through the R terminal (if you use R-Studio you can also do this in the "packages" window where the packages are listed),
2) run sudo apt-get install r-cran-reshape2
in the ubuntu terminal,
3) restarted the computer.