Dear all, I seem to have many problems as I run R on my ubuntu system. want to set a mirror so that anytime I use the command "install.packages", it does not ask me for which mirror to use but go direct. This is because of the error I keep on getting below and I dont know how to solve it. Please help. Kind regards, Lazarus> library(epicalc)Loading required package: foreign Loading required package: survival Loading required package: splines> install.packages("lattice")Warning in install.packages("lattice") : argument 'lib' is missing: using '/home/lmramba/R/i486-pc-linux-gnu-library/2.9' Error in contrib.url(repos, type) : trying to use CRAN without setting a mirror Calls: install.packages -> grep -> contrib.url Execution halted Exited: 256 [[alternative HTML version deleted]]
Bernardo Rangel Tura
2009-Oct-10 10:26 UTC
[R] Setting a mirror "permanently" on R on ubuntu
On Sat, 2009-10-10 at 04:54 +0100, Lazarus Mramba wrote:> Dear all, > > I seem to have many problems as I run R on my ubuntu system. > want to set a mirror so that anytime I use the command "install.packages", > it does not ask me for which mirror to use but go direct. > This is because of the error I keep on getting below and I dont know how to > solve it. > > Please help. > > Kind regards, > LazarusLazarus, use options(repos="mirror URL") -- Bernardo Rangel Tura, M.D,MPH,Ph.D National Institute of Cardiology Brazil