0
votes

I am trying to install the package "WRS" in R Studio Version 1.2.5033 but it does not work. I could not find answers for the problem online, thus I am starting possible ones here.

The code looks like this:

install.packages("WRS", repos="http://R-Forge.R-project.org")

library(WRS)

or

source("http://www-rcf.usc.edu/~rwilcox/Rallfun-v14")

The website http://www-rcf.usc.edu/~rwilcox/Rallfun-v14 does not work anymore but it should work with the active website http://R-Forge.R-project.org.

Does anyone know what/where the problem may be? Furthermore, how can I install the package WRS in R Studio Version 1.2.5033? At last, I know that the R Studio Version 1.2.5033 is one of the latest versions and maybe this is the problem. Yet, how can I solve it and keep using the version that I currently have?

Thanks!

1
Any output? Error messages? How do you know it isn't working? - Conor Neilson

1 Answers

2
votes

As others noted, post your error messages, and it's easier to help you. For example, I tried to install and received the following error message:

ERROR: dependency 'akima' is not available for package 'WRS'
* removing 'C:/R/R-3.5.3/library/WRS'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘WRS’ had non-zero exit status

Note that it is requiring the library 'akima' to be installed, and seems to be having trouble doing that. In this case, if you do the following, the installation "works":

install.packages('akima')   # install the problem dependency yourself
install.packages('WRS', repos="http://R-Forge.R-project.org")

I put "works" in quotes because there are quite a few "possible error..." notes, so I don't know if all the functions work properly. However, this does get you able to install the library. Load the package with library(WRS) and the methods appear to be there for me.