简体   繁体   English

安装 R 包“WRS”

[英]Installing R package "WRS"

I am trying to install the package "WRS" in R Studio Version 1.2.5033 but it does not work.我正在尝试在 R Studio 版本 1.2.5033 中安装包“WRS”,但它不起作用。 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") install.packages("WRS", repos="http://R-Forge.R-project.org")

library(WRS)图书馆(WRS)

or或者

source(" http://www-rcf.usc.edu/~rwilcox/Rallfun-v14 ")来源(“ 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 .网站http://www-rcf.usc.edu/~rwilcox/Rallfun-v14不再工作,但它应该与活动网站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?此外,如何在 R Studio 版本 1.2.5033 中安装 WRS 包? At last, I know that the R Studio Version 1.2.5033 is one of the latest versions and maybe this is the problem.最后,我知道 R Studio 版本 1.2.5033 是最新版本之一,也许这就是问题所在。 Yet, how can I solve it and keep using the version that I currently have?但是,我该如何解决并继续使用我目前拥有的版本?

Thanks!谢谢!

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.请注意,它需要安装库 'akima',并且似乎在这样做时遇到了麻烦。 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.library(WRS)加载包,这些方法似乎对我来说就在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM