[R-sig-Debian] No internet connection

Matthieu Stigler matthieu.stigler at gmail.com
Mon Aug 31 10:50:41 CEST 2009


Obgos


I'm not expert and hope what I tell you is right...

There are two alternative ways to install a package, assuming you can
use apt-get (how did you install R?).

1 via apt-get (but don't know if the package you want is there, I'm
not on ubuntu machine now)
sudo apt-get install r-cran-cvt
check existing ones:
apt-cache search r-cran-*

2 What I did sometimes when I had proxy problems being in other places
was to install manually, it is rather a workaround but if you are in a
hurry that can help. Go to CRAN-packages, download the sources of the
package you want, go to the terminal and choose the directory where
the sources are (using cd), then:
R CMD INSTALL package
(maybe you need to install few more R package through apt-get such
as... mmh what is the name... r-dev I think)

Hope this helps

Mat

2009/8/28 Michael Rutter <mar36 at psu.edu>:
> Obgos,
>
> For some reason your computer (or perhaps just the terminal) does not have
> have access to the internet.  This is not an R related issue, but a hardware
> or Ubuntu related one.
>
> I suggest you speak to your system administrator or visit the Ubuntu forums
> for help.  R-sig-Debian is only for R related issues.
>
> Michael
>
> ogbos okike wrote:
>>
>> Good morning all,
>> I am running linux on Ubuntus. I am unable to install any R packages. The
>> error message below always returns whenever I make an attempt:
>>
>>> install.packages("cvt")
>>
>> Warning in install.packages("cvt") :
>>  argument 'lib' is missing: using '/home/ogbos/R/i486-pc-linux-
>> gnu-library/2.8'
>> --- Please select a CRAN mirror for use in this session ---
>> Loading Tcl/Tk interface ... done
>> Warning: unable to access index for repository
>> http://cran.za.r-project.org/src/contrib
>> Warning messages:
>> 1: In open.connection(con, "r") :
>>  unable to connect to 'cran.r-project.org' on port 80.
>> 2: In install.packages("cvt") : package ‘cvt’ is not available
>>
>> It does appear that this has to do with internet connection.
>>
>> I entered ping cran.r-project.org on the command line expecting to see:
>>
>> 'PING cran.wu-wien.ac.at (137.208.57.37) 56(84) bytes of data.
>> 64 bytes from cran.wu-wien.ac.at (137.208.57.37): icmp_seq=1 ttl=46
>> time=141
>> ms
>> 64 bytes from cran.wu-wien.ac.at (137.208.57.37): icmp_seq=2 ttl=46
>> time=142
>> ms
>> 64 bytes from cran.wu-wien.ac.at (137.208.57.37): icmp_seq=3 ttl=46
>> time=141
>> ms'
>>
>> But I only saw PING cran.wu-wien.ac.at (137.208.57.37) 56(84) bytes of
>> data.
>>
>> I also tried ping cran.za.r-project.org. The result only show:
>> 'PING vhost.ru.ac.za (146.231.129.7) 56(84) bytes of data.'
>>
>> I do not know what else to do as I am but a new student of R. I will
>> please
>> appreciate any help.
>> Thank you
>>
>> Ogbos
>>
>>        [[alternative HTML version deleted]]
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> R-SIG-Debian mailing list
>> R-SIG-Debian at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>
> --
> Dr. Michael A. Rutter
> School of Science
> Penn State Erie, The Behrend College
> Station Road
> Erie, PA 16563
> http://math.bd.psu.edu/faculty/rutter
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>



More information about the R-SIG-Debian mailing list