Hello joris, when i type the command:
> ?installed.packages
seems it works fine and shows me the man page of install.packages()

Then i followed ur instructions by first removing DAAG
> remove.packages("DAAG")
Warning in remove.packages("DAAG") :
  argument 'lib' is missing: using
/home/simon/R/i486-pc-linux-gnu-library/2.9
Error in .find.package(pkgs, lib) : there is no package called 'DAAG'


Then i try to install randomForest first
> install.packages("randomForest")
Warning in install.packages("randomForest") :
  argument 'lib' is missing: using
'/home/simon/R/i486-pc-linux-gnu-library/2.9'
trying URL '
http://ftp.ctex.org/mirrors/CRAN/src/contrib/randomForest_4.5-30.tar.gz'
Content type 'application/x-gzip' length 70247 bytes (68 Kb)
opened URL
==================================================
downloaded 68 Kb


 Warning: you have multiple copies of the following packages:
Error: could not find function "installed.packages"
Execution halted

The downloaded packages are in
    ‘/tmp/Rtmppr7kcy/downloaded_packages’
Warning message:
In install.packages("randomForest") :
  installation of package 'randomForest' had non-zero exit status







so what should i do ? thanks

---------- Forwarded message ----------
From: joris meys <jorismeys@gmail.com>
Date: Thu, Oct 8, 2009 at 8:25 PM
Subject: Re: [R] I can not install DAAG package . help
To: Yanyuan Zhu <caoanroad4800@gmail.com>
Cc: r-help@r-project.org


Quite a strange error. The function installed.packages should be in
the utils package.
Try ?installed.packages and see if you get a help file. If it doesn't
find that function, there is a problem with your R installation.

It might be something went wrong with downloading the package itself.
DAAG is 2.6 Mb at my computer.

Remove DAAG by remove.packages(DAAG)
Check whether randomForest is installed. If so, remove that one as well.

Now install randomForest first, and then DAAG. If this doesn't work,
post the log and error message again.

Kind regards
Joris

On Thu, Oct 8, 2009 at 10:27 AM, Yanyuan Zhu <caoanroad4800@gmail.com>
wrote:
> I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude
install"
> way
> Now i'm learning a book of R which needs "MASS" and "DAAG" installed.
> So i followed the instructions:
>
>>install.packages("MASS")
>>library("MASS")
>
> MASS works fine.
>
> But DAAG doesn't. Anyone who could help would be appreciated a lot !
>
> Below are my error outpus :
>
>> install.packages("DAAG")
> Warning in install.packages("DAAG") :
>  argument 'lib' is missing: using
> '/home/simon/R/i486-pc-linux-gnu-library/2.9'
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> also installing the dependency ‘randomForest’
>
> trying URL '
> http://ftp.ctex.org/mirrors/CRAN/src/contrib/randomForest_4.5-30.tar.gz'
> Content type 'application/x-gzip' length 70247 bytes (68 Kb)
> opened URL
> ==================================================
> downloaded 68 Kb
>
> trying URL 'http://ftp.ctex.org/mirrors/CRAN/src/contrib/DAAG_1.00.tar.gz'
> Content type 'application/x-gzip' length 2172778 bytes (2.1 Mb)
> opened URL
> ==================================================
> downloaded 2.1 Mb
>
>
>  Warning: you have multiple copies of the following packages:
> Error: could not find function "installed.packages"
> Execution halted
>
>  Warning: you have multiple copies of the following packages:
> Error: could not find function "installed.packages"
> Execution halted
>
> The downloaded packages are in
>    ‘/tmp/Rtmp7w4WPA/downloaded_packages’
> Warning messages:
> 1: In install.packages("DAAG") :
>  installation of package 'randomForest' had non-zero exit status
> 2: In install.packages("DAAG") :
>  installation of package 'DAAG' had non-zero exit status
>
>> library(DAAG)
> Error in library(DAAG) : there is no package called 'DAAG'
>
>
> --
> ---------------
> Yanyuan Zhu
> Doctoral Candidate
> School of Economics & Management, Tongji University
> MSN messenger:CaoAnRoad4800@hotmail.com<messenger%3ACaoAnRoad4800@hotmail.com>
<messenger%3ACaoAnRoad4800@hotmail.com<messenger%253ACaoAnRoad4800@hotmail.com>
>
> E-mail: CaoAnRoad4800@gmail.com
> BLOG http://yyzhu.net
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
---------------
Yanyuan Zhu
Doctoral Candidate
School of Economics & Management, Tongji University
MSN messenger:CaoAnRoad4800@hotmail.com<messenger%3ACaoAnRoad4800@hotmail.com>
E-mail: CaoAnRoad4800@gmail.com
BLOG http://yyzhu.net

	[[alternative HTML version deleted]]


