Skip to content

loading packages

2 messages · Elena Moltchanova, Roger Bivand

#
Thanks to Roger for pointing out the packages spweights and sptests to
me. I believe they will be quiet useful in my work. But... I can't get
them to work!

Firstly, I realised that a newer version of R is available. I have now
downloaded and installed it. When I try to 'install packages from CRAN'
I get:

trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
unable to connect to 'cran.r-project.org'.
Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),
:
        cannot open URL
`http://cran.r-project.org/bin/windows/contrib/PACKAGES'

although my Netscape has no problems locating it.

Whan I unzip the files to the library-subdirectory the command

library(spweights)

results in

Warning message:
Package  `spweights' contains no R code in: library(pkg, character.only
= TRUE)

although library(help=spweights) produces a window with the desired
information.

I cannot use 'install package from local zip.-file' because the packages
are in .tar.gz-format.

Please tell me what am I missing here?

Best regards,

    Elena Moltchanova

-------------- next part --------------
A non-text attachment was scrubbed...
Name: emor.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: Card for Elena Moltchanova
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20011023/6490d1b3/emor.vcf
#
Elena:
On Tue, 23 Oct 2001, Elena Moltchanova wrote:

            
This happens when one installs a package source as though it was a binary,
because library() doesn't find the R code.
If the files you found are in *.tar.gz format, then they are the source
files, not the Windows binaries.

The *.zip files are in http://cran.r-project.org/bin/windows/contrib/ and
should be installable with the menu item: "Packages" -> "Install package
from local zip file", if -> "Install package from CRAN" doesn't fly for
you (does for me).

Roger