安装R包“应用程序预测”错误

时间:2022-07-15 19:40:19

I am learning ML from Applied Predictive Modeling book, while installing AppliedPredictiveModeling package I am getting following error

我正在从应用预测建模书学习ML,在安装应用预测模型包时,我得到了以下错误

install.packages("AppliedPredictiveModeling")

Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

包LibPath版本优先级取决于导入链接到的链接,建议增强许可被许可方许可协议(License se_is_foss License_restricts_use OS_type Archs MD5sum需要编译)

I tried looking on Google and SO to resolve this but was unable to find any solution. Please tell me how to resolve this, I have never encountered this error before. I use RStudio on Windows 7.

我尝试查看谷歌来解决这个问题,但是没有找到任何解决方案。请告诉我如何解决这个问题,我以前从未遇到过这个错误。我在Windows 7上使用RStudio。

2 个解决方案

#1


2  

since no one was able to help me on this issue, I guess perhaps it was not a common problem, but I solved it finally by installing the package offline.

由于没有人能在这个问题上帮助我,我想这可能不是一个常见的问题,但我最终通过离线安装包解决了这个问题。

#2


0  

I encountered the same error when attempting to install the car package using

我在尝试安装汽车包时遇到了同样的错误

install.packages("car")

The response / error message I got was:

我得到的响应/错误消息是:

Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

包LibPath版本优先级取决于导入链接到的链接,建议增强许可被许可方许可协议(License se_is_foss License_restricts_use OS_type Archs MD5sum需要编译)

I was in the middle of an R session (RStudio, on Windows 10) when I first attempted to install it.

当我第一次尝试安装它时,我正在一个R会话中(在Windows 10上是RStudio)。

I fixed it by closing RStudio, and then re-running

我通过关闭RStudio来修复它,然后重新运行

install.packages("car")

as the first command I ran upon reopening RStudio.

作为第一个命令,我重新打开RStudio。

Perhaps not a definitive solution, but thought it might help others.

也许这不是一个确定的解决方案,但它可能会帮助其他人。

#1


2  

since no one was able to help me on this issue, I guess perhaps it was not a common problem, but I solved it finally by installing the package offline.

由于没有人能在这个问题上帮助我,我想这可能不是一个常见的问题,但我最终通过离线安装包解决了这个问题。

#2


0  

I encountered the same error when attempting to install the car package using

我在尝试安装汽车包时遇到了同样的错误

install.packages("car")

The response / error message I got was:

我得到的响应/错误消息是:

Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

包LibPath版本优先级取决于导入链接到的链接,建议增强许可被许可方许可协议(License se_is_foss License_restricts_use OS_type Archs MD5sum需要编译)

I was in the middle of an R session (RStudio, on Windows 10) when I first attempted to install it.

当我第一次尝试安装它时,我正在一个R会话中(在Windows 10上是RStudio)。

I fixed it by closing RStudio, and then re-running

我通过关闭RStudio来修复它,然后重新运行

install.packages("car")

as the first command I ran upon reopening RStudio.

作为第一个命令,我重新打开RStudio。

Perhaps not a definitive solution, but thought it might help others.

也许这不是一个确定的解决方案,但它可能会帮助其他人。