> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, January 10, 2008 4:06 PM
> To: r-help@r-project.org
> Subject: [R] installing and using a package
> 
> i'm trying to learn R. i have no programing experience. i 
> tried to add on
> a package and just picked "yags". i can't get it to work or 
> get any help.
> 
> ---
> > install.packages("yags")
> Warning in install.packages("yags") :
>   argument 'lib' is missing: using 'C:\Documents and Settings\j\My
> Documents/R/win-library/2.6'
> trying URL
> 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.6/ya
> gs_4.0-2.zip'
> Content type 'application/zip' length 183779 bytes (179 Kb)
> opened URL
> downloaded 179 Kb
> 
> package 'yags' successfully unpacked and MD5 sums checked
> 
> The downloaded packages are in
>         C:\Documents and Settings\j\Local
> Settings\Temp\RtmpXGE7rd\downloaded_packages
> updating HTML package descriptions
> ---
> 
> then i tried:
> 
> ---
> > help("yags")
> No documentation for 'yags' in specified packages and libraries:
> you could try 'help.search("yags")'
> ---
> 
> help.search doesn't help. when i type library() the result says:
> 
> ---
> Packages in library 'C:\Documents and Settings\j\My
> Documents/R/win-library/2.6':
> 
> yags                          Yet Another GEE Solver
> 
> Packages in library 'C:/PROGRA~1/R/R-26~1.0/library':
> 
> base                          The R Base Package
> boot                          Bootstrap R (S-Plus) Functions (Canty)
> class                         Functions for Classification
> cluster                       Cluster Analysis Extended 
> Rousseeuw et al.
> ...
> ---
> 
> i've checked the Admin and Maint manual, but i'm stumped as 
> to how to get
> yags to actually work. i copied and pasted the example from 
> the html file
> in the yags folder and after every line that called yags, there was an
> error message that said:
> Error: could not find function "yags".
> 
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
> 

You need to read the "An Introduction to R" manual which was probably installed 
when you installed R on your un-named OS (Windows, I take it).  You probably 
also want to read the posting-guide referenced at the bottom of the email.  But 
to get you started, you need to load a package before using it.  In your case 

library(yags) 

should get you started.  Hope this is helpful,

Dan

Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA  98504-5204
 
 

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to