在 R Studio 中安装包时出错

Error installing packages in R Studio

我在 64 位 Windows 7 操作系统上将 R 和 R Studio 更新到最新版本,即 R 3.2.0 和 R studio 0.98.1103。 在此更新后,当我尝试在 R 中安装包时,抛出错误:

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

请帮忙!

试试这个:

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

现在尝试安装任何软件包。希望有用