Update Feb 17, 2014: WRS moved to Github – This installation procedure has been updated and still is valid
Some users had trouble installing the WRS package from R-Forge. Here’s a method that should work automatically and fail-safe:
[cc lang=”rsplus” escaped=”true”]
# first: install dependent packages
install.packages(c(“MASS”, “akima”, “robustbase”))
# second: install suggested packages
install.packages(c(“cobs”, “robust”, “mgcv”, “scatterplot3d”, “quantreg”, “rrcov”, “lars”, “pwr”, “trimcluster”, “parallel”, “mc2d”, “psych”, “Rfit”))
# third: install an additional package which provides some C functions
# fourth: install WRS
WRS cannot be hosted on CRAN, as CRAN demands help files for every user-visible function. This has not been done for WRS (yet). For the time being, this somewhat more complicated installation routine has to be used.
29 thoughts on “Installation of WRS package (Wilcox’ Robust Statistics)”
Hi – doesn’t seem to work at the moment (July 2013). Has it been locked off?
Yup, R-Forge is down until 12 July 2013: http://r-forge.r-project.org/forum/forum.php?forum_id=4407
If you can’t wait, download the functions from http://dornsife.usc.edu/labs/rwilcox/software/
Hi Felix, just to say many thanks for the helpful code.
Update Sep 19 (v. 0.23.2): Due to an error in the NAMESPACE file the functions were not exported. Works with 0.23.2.
Thanks for the instruction. Just a simple question. I noticed that there is also a project called WRScppWin. If I run R for Windows, should I install that package instead of WRScpp?
Actually, I have no idea. Maybe it would be best to contact the WRScpp maintainer?
Dear FelixS, I’ve been trying to install WRS on R 3.1.1 (on MacOS), following your highly useful method above, but to no avail. None of the WRS functions (e.g. t2way) is recognised, even though library(WRS) does not yield any error messages. Do you think there may be any problem with my R version (which is the most recent one, as far as I know).
Thanks a lot!
Indeed, the NAMESPACE file was broken – should be fixed now.
Does it work now for you?
Can’t seem to get this to work for R 3.1.2, is it compatible?
Works fine on my system – what is the exact error message?
What is the status of the WRS2 package at CRAN? Is it better to use that (v. 0.3-1) or the version (0.27.5) from github?
WRS2 on CRAN provides a limited subset of the full WRS package on Github, and it lacks somewhat behind, as it has to be adapted to changes on the github package. But, WRS2 provides help files for the included functions and more user-friendly interfaces for some functions.
If you only use functions provided in WRS2, use this package. If you need other functions of WRS, or want the cutting edge version, use WRS from Github.
Thanks a lot for the clarification! Reading the version numbers I had the impression that WRS2 is newer (better) than WRS.
Oh, the version numbers are entirely unrelated.
I keep getting this error
Error: could not find function “install_github”
Do I need something else to work with WRS?
Yes, I did the whole script you provide including the devtools part. It just seems to hang up on the install_github part
The error message “Error: could not find function “install_github”” appears when you did not load the devtools package properly, using `library(devtools)`
I recently installed WRS via the method above (everything went fine) and am running the current version of R (3.3.0), but am having the same problem that ThomasB indicated above two years ago. I use library(WRS) and receive no error, but then R tells me that it “could not find function ‘t2way'” when I try to run the code. Is there any issue with the install files?
Thanks for your work.
WRScppWin won’t install on my PC (R v. 3.3.1, Windows 10).
* installing *binary* package ‘WRScpp’ …
cp: unknown option — )
Try ‘/usr/bin/cp –help’ for more information.
Warning: l’exécution de la commande ‘cp -R . “C:/Users/ppplll/Documents/R/win-library/3.3/WRScpp” || ( internal cd – .| (cd “C:/Users/ppplll/Documents/R/win-library/3.3/WRScpp” && internal -xf -))’ renvoie un statut 1
ERROR: installing binary package failed
* removing ‘C:/Users/ppplll/Documents/R/win-library/3.3/WRScpp’
I have the same error message as described above.
Interesting – works on my Mac. But this additional package is only needed to speed up computation for a few functions. Mostly (if not all) WRS function run without this package. So, no need to worry AFAIK.
I work on Rallfunv32 of WRS package to get bmpmul function but warning message appear as :test[jcom,7]<-temp$sig.level
Number of items to be replaced is not multiple of replacements
Can any one help me with that error please
Thanks, got me thru..
thanks for the useful instructions and the package!
Just in case someone encounters the same problem I’ve got when installing devtools on my computer (Windows 7, R 3.2.2):I could solve itt following: https://stackoverflow.com/questions/30219174/r-error-installing-devtools-in-windows.
Basically it involved installing Rtools (https://cran.r-project.org/bin/windows/Rtools/) prior to devtools.