Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I would like to use the fuction weighted.median() in package R.basic (and some other ones too, although this one is most important).

install.packages("R.basic") 

gives me:

package ‘R.basic’ is not available

and

library(R.basic) 

says

Error in library("R.basic") : there is no package called 'R.basic'

There is a downloadable version here. But, typing:

install.packages("~/Documents/R.classes_0.62.tar.gz", CRAN=NULL)

Gives

Error in do_install(pkg) : 
  this seems to be a bundle -- and they are defunct
Warning message:
In install.packages("~/Documents/R.classes_0.62.tar.gz",  :
  installation of package '~/Documents/R.classes_0.62.tar.gz' had non-zero exit status

How to get thru ?

share|improve this question

1 Answer

up vote 6 down vote accepted

That's because the package doesn't exist on CRAN (see the package list). It may have failed a build in a recent version of R.

You can install it directly from the author's site like so:

install.packages(c("R.basic"), contriburl="http://www.braju.com/R/repos/")

See Henrik Bengtsson's home page for more detail.

Edit

Just to add a little further: it looks like this package fails to build on later versions of R. You should probably get the source and build it yourself, or else contact the package author.

share|improve this answer
depends on which package list ? stat.ucl.ac.be/ISdidactique/Rhelp/doc/html/packages.html – user603 Oct 22 '10 at 14:15
@kwak Your link must be to an outdated mirror. – Shane Oct 22 '10 at 14:17
> Ran/build on latest R (here on ubuntu). Thanks. – user603 Oct 22 '10 at 14:30
1  
That mirror was last updated in October 2003. It's better to use cran.r-project.org/web/packages – Rob Hyndman Oct 23 '10 at 0:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.