Before installing R from source, I normally do "sudo apt-get build-dep r-base" which always worked under Ubuntu. Now I have a Debian (Testing) machine with LXDE and when executing the above, I obtain "E: Unable to find a source package for r-base". What might be the cause of this error?
Update
I forgot to add deb http://stat.ethz.ch/CRAN/bin/linux/debian jessie-cran3
and deb-src http://stat.ethz.ch/CRAN/bin/linux/debian jessie-cran3
to /etc/apt/sources.list
. After sudo apt-get update
, I obtained:
Reading package lists... Done
W: GPG error: http://stat.ethz.ch jessie-cran3/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 06F90DE5381BA480
As the section cran.r-project.org -> Download R for Linux -> debian -> SECURE APT says, a key needs to be added. As this failed, I did it slightly differently via sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key <NUMBER>
where <NUMBER>
is the number given above, so 06F90DE5381BA480
options(repos=c(CRAN="http://cran.ch.r-project.org"))
. Maybe that's where the server came from. Cheers, M.