[R] example on front page doesn't work in R 2.0.1

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Fri Apr 15 22:49:19 CEST 2005



Hubert Feyrer wrote on 4/15/2005 3:43 PM:
> On Fri, 15 Apr 2005, Sundar Dorai-Raj wrote:
> 
>>> Loading required package: ade4
>>> Loading required package: mva
>>> Loading required package: RColorBrewer
>>> Loading required package: pixmap
>>> Loading required package: ade4
>>> Error in plotacpclust(swiss[, 1:5], 1, 3, hcut = 48) :
>>>         couldn't find function "s.corcircle"
> 
> ...
> 
>> Works for me with R-2.0.1 on Windows 2000. Did you remember to install 
>> the required packages?
> 
> 
> I didn't install any packages beyond the "base" installation of R (which 
> comes with a lot of packages here on NetBSD). It seems it's loading the 
> required packages ok from the log (see above). Can you tell me where 
> s.corcircle() is defined for you? ("?s.corcircle" may tell).
> 
> 
>  - Hubert
> 


Hubert,

You snipped too much:

In addition: Warning messages:
1: There is no package called 'ade4' in: library(package, character.only 
= TRUE, logical = TRUE, warn.conflicts = warn.conflicts,
2: package 'mva' has been merged into 'stats'
3: There is no package called 'RColorBrewer' in: library(package, 
character.only = TRUE, logical = TRUE, warn.conflicts = warn.conflicts,
4: There is no package called 'pixmap' in: library(package, 
character.only = TRUE, logical = TRUE, warn.conflicts = warn.conflicts,
5: There is no package called 'ade4' in: library(package, character.only 
= TRUE, logical = TRUE, warn.conflicts = warn.conflicts,

This is where it says "ade4", etc. is not found. If you would like to 
install these packages, it's rather easy:

install.packages(c("ade4", "RColorBrewer", "pixmap"))

mva (which is merged with the stats package) should come with your 
installation of R.

BTW, find("s.corcircle") return "package:ade4".

--sundar




More information about the R-help mailing list