在RStudio中安装XLConnect时出错 [英] Error when installing XLConnect in RStudio

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

问题描述

先谢谢了. 我正在尝试安装XLConnect软件包.我正在使用RStudio.供您参考,已安装rJava.

Thanks in advance. I am trying to install XLConnect package. I am using RStudio. For your information rJava is installed.

这是我在R中的命令和错误消息:

Here is my command in R and the error message:

install.packages("XLConnect")

install.packages("XLConnect")

尝试URL' http://cran.rstudio .com/bin/windows/contrib/3.1/XLConnect_0.2-7.zip ' 内容类型应用程序/邮政编码"长度17997942字节(17.2 Mb) 打开的URL 下载了16.7 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/XLConnect_0.2-7.zip' Content type 'application/zip' length 17997942 bytes (17.2 Mb) opened URL downloaded 16.7 Mb

install.packages中的警告:下载的长度为17473536!=报告的长度为17997942

Warning in install.packages : downloaded length 17473536 != reported length 17997942

install.packages中的警告:从zip文件提取错误1

Warning in install.packages : error 1 in extracting from zip file

install.packages中的警告:无法打开压缩文件"XLConnect/DESCRIPTION",可能是无此文件或目录"的原因

Warning in install.packages : cannot open compressed file 'XLConnect/DESCRIPTION', probable reason 'No such file or directory'

install.packages中的错误:无法打开连接

Error in install.packages : cannot open the connection

推荐答案

下载某些软件包时,我遇到了类似的问题.尝试使用重新安装软件包cran

I faced similar issue while downloading some package. Try re-installing the package cran using

install.packages("CRAN")

查看是否有效,如果长度不匹配的问题仍然存在,请卸载RStudio并重新安装.

See if it works, if the issue of unmatched length persists uninstall RStudio and install it again.

这似乎对我有用.

这篇关于在RStudio中安装XLConnect时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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