R CRAN,R3.2 升级后安装库 Rcpp 失败 [英] R CRAN, install library Rcpp fails after R3.2 upgrade

查看:73
本文介绍了R CRAN,R3.2 升级后安装库 Rcpp 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 R-3.1 升级到 R-3.2.OK(标准升级)

I upgraded from R-3.1 to R-3.2. OK ( Standard upgrade)

但是这次升级似乎丢失了所有已安装的软件包(ggplot2、quantmod、Rcpp 以及其他几十个).

But this upgrade seems to have lost all the installed packages ( ggplot2, quantmod, Rcpp among dozens and dozens of others).

从 RStudio 工具菜单选项安装了很多.大多数都成功了.但是 Rcpp 的问题(从 ggplot2 作为依赖项安装时).安装包data.table时出现同样的问题:

So installed many from the RStudio tools menu option. Most were successful. But problem with Rcpp (when installing as dependency from ggplot2). The same issue occurs when installing package data.table:

Warning in install.packages :   unable to move temporary installation
‘C:\Users\euclid\Documents\R\win-library\3.2\file40fc19bc2752\colorspace’
to ‘C:\Users\euclid\Documents\R\win-library\3.2\colorspace’ package
‘Rcpp’ successfully unpacked and MD5 sums checked Warning in
install.packages :   unable to move temporary installation
‘C:\Users\euclid\Documents\R\win-library\3.2\file40fc53e26272\Rcpp’ to
‘C:\Users\euclid\Documents\R\win-library\3.2\Rcpp’

注意:单独安装 Rcpp 包时会出现相同的错误.

Note: The identical error occurs when installing package Rcpp on its own.

任何建议表示赞赏.

推荐答案

你需要在没有加载任何包的情况下使用vanilla"会话来更新这些包——这是一个众所周知的(但仍然很烦人)的 Windows 缺点您无法更新当前已加载(对象)代码的包.由于 Rcpp 带有一个小 dll ......你会被咬.

You need to have 'vanilla' session without any packages loaded in order to update those package -- it is a well-known (and still annoying) Windows shortcoming that you cannot update a package which currently had (object) code loaded. As Rcpp comes with a small dll ... you get bitten.

这篇关于R CRAN,R3.2 升级后安装库 Rcpp 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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