Skip to content

example on front page doesn't work in R 2.0.1

6 messages · Hubert Feyrer, Sundar Dorai-Raj, Uwe Ligges

#
On http://www.r-project.org/, there is an R script linked to the top 
graphic, http://www.r-project.org/misc/acpclust.R. This script says it 
works in R 1.8.1, but in 2.0.1 it gives (me):
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"
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,
Maybe you want to adjust this! :)

Thank you very much very this very very useful program! It saved me from 
Excel/Gnumeric. ;)


  - Hubert
#
Hubert Feyrer wrote on 4/15/2005 3:04 PM:
Hubert,

Works for me with R-2.0.1 on Windows 2000. Did you remember to install 
the required packages?

--sundar
#
On Fri, 15 Apr 2005, Sundar Dorai-Raj wrote:
...
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 Feyrer wrote on 4/15/2005 3:43 PM:
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
#
On Fri, 15 Apr 2005, Sundar Dorai-Raj wrote:
...
Ah, thanks! i'll try to see how I can add the packages - using Unix, I 
cannot write to the R package's directory. I'll see how to work around 
this, but thank you very much for the help!

Maybe it would be good to not require any special packages for an example 
offered on the frontpage of www.r-project.org though... :)


  - Hubert
#
Hubert Feyrer wrote:
Read the docs how to create your own library of packages. It's easy!

Uwe Ligges