在R 3.2.0中安装xlsx和xlsxjars [英] install xlsx and xlsxjars in R 3.2.0

查看:362
本文介绍了在R 3.2.0中安装xlsx和xlsxjars的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从今天起,我使用R版本3.2.0进行统计分析。今天我尝试为我的新安装安装xlsx和xlsxjars包,但没有起作用。每次我尝试安装软件包( install.packages(xlsx))我收到以下错误消息:

Since today I am using the R Version 3.2.0 for statistical analysis. Today I try to install the packages "xlsx" and "xlsxjars" for my new installation but it didn't work. Every time I try to install the packages (install.packages("xlsx")) I get the following error message:

Warning in install.packages :
downloaded length 9351168 != reported length 9485172
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/xlsx_0.5.7.zip'
Content type 'application/zip' length 400857 bytes (391 KB)
downloaded 391 KB
Warning in install.packages :
  error 1 in extracting from zip file
Warning in install.packages :
  cannot open compressed file 'xlsxjars/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the Connection`

只有当我尝试安装xls-packages时才会出现此问题。其他软件包可以顺利安装,无任何问题。
我希望有没有人在R版本3.2.0中已经安装了上述软件包,可以给我一个简短的建议,如何在新的R版本中安装软件包?

The problem only take place when I try to install the xls-packages. Other packages can be installed smoothly without any problems. I hope there is anyone out there who had already installed the aforesaid packages in R Version 3.2.0 and can give me a short advice how to install the packages in the new R Version?

推荐答案

首先,

setInternet2(use=TRUE)

然后单独安装必需的包:

Then install necessary packages individually:

install.packages('rJava')
install.packages('xlsxjars')
install.packages('xlsx')

这篇关于在R 3.2.0中安装xlsx和xlsxjars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆