简体   繁体   English

RStudio安装程序包和程序包更新都下载然后失败,无法打开文件

[英]RStudio Install Packages and Package Updates both download then fail with cannot open file

Running happily with R 3.4 and RStudio 1.0.143 under Win10 this problem occured bringing project development to a halt. 在Win10下与R 3.4和RStudio 1.0.143一起愉快地运行时,会出现此问题,从而使项目开发暂停。 Downloads each occur and are unzipped and then the a presumably first file in the first item gets: 每次都进行下载并解压缩,然后第一项中的大概第一个文件将获得:

Error in install.packages : cannot open file 'C:/Users/Admin/Documents/R/
win-library/3.4/file30504386b80/rJava/javadoc/resources/background.gif': 
Permission denied

and the prompt returns. 然后提示返回。

Updating to R version 3.4.1 (2017-06-30), RStudio Version 1.0.153 was to no avail. RStudio版本1.0.153更新到R版本3.4.1(2017-06-30)无济于事。 Using the OS to remolve all R versions and trying again with 3.4.1 did not work. 使用操作系统重塑所有R版本并尝试使用3.4.1重试无效。 Removing R again and deleting the R directory to refresh the library did not work. 再次删除R并删除R目录以刷新库无效。 My virius software like to tell how helpful it has been and has not, so that issue seems unlikely. 我的virius软件喜欢说它的有用性和无效性,因此似乎不太可能出现此问题。

Giving the user full control of the R library did not help. 让用户完全控制R库并没有帮助。

could package-updates be a tag like install-updates? 软件包更新可以像安装更新一样标记吗?

It looks there is a problem between Java and rJava. 看来Java和rJava之间有问题。

You should try reinstalling Java using chocolatey package manager ( https://chocolatey.org/ ) and then reinstall rJava package. 您应该尝试使用chocolatey软件包管理器( https://chocolatey.org/ )重新安装Java,然后重新安装rJava软件包。

I had a similar issue two weeks ago on a windows laptop. 两周前,我在Windows笔记本电脑上遇到了类似的问题。

I had this problem for a long time. 我这个问题很久了。 only in RStudio. 仅在RStudio中。 Install the package on R and Library it. 将程序包安装在R上并对其进行Library Go to RStudio and require the package. 转到RStudio并require包装。

It works! 有用!

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

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