简体   繁体   English

在 R Studio 中安装包时出错

[英]Error installing packages in R Studio

I updated the R and R Studio to the latest versions ie R 3.2.0 and R studio 0.98.1103 on my 64-bit Windows 7 operating system.我在我的 64 位 Windows 7 操作系统上将 R 和 R Studio 更新到最新版本,即 R 3.2.0 和 R studio 0.98.1103。 When I try to install packages in R after this update the error is thrown:当我在此更新后尝试在 R 中安装软件包时,抛出错误:

Warning in install.packages :
  downloaded length 4878 != reported length 200
Error in install.packages : subscript out of bounds

Please help!请帮忙!

Try this:尝试这个:

options(repos=structure(c(CRAN="http://cran.us.r-project.org")))

Now try installing any package.现在尝试安装任何软件包。 Hope it works希望它有效

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

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