# package R.basic

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 ?

-
add comment

## 1 Answer

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.

-
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
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
add comment