r - 无法在R上安装
问题描述
我收到以下错误:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Alejandro/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
plotly 4.9.3 4.9.4.1 FALSE
installing the source package ‘plotly’
trying URL 'https://cran.rstudio.com/src/contrib/plotly_4.9.4.1.tar.gz'
Content type 'application/x-gzip' length 3742653 bytes (3.6 MB)
downloaded 3.6 MB
* installing *source* package 'plotly' ...
** package 'plotly' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'vctrs' 0.3.1 is already loaded, but >= 0.3.6 is required
Calls: <Anonymous> ... asNamespace -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'plotly'
* removing 'C:/Users/Alejandro/Documents/R/win-library/3.6/plotly'
Warning in install.packages :
installation of package ‘plotly’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Alejandro\AppData\Local\Temp\RtmpGi9fpb\downloaded_packages’
解决方案
推荐阅读
- optimization - 解读 Gurobi 的 LP 优化结果
- c++ - 定向光不照亮表面
- ios - 如何在持续集成中检测对 iOS 的 64 位构建支持?
- python - 了解如果
- 做?
- react-native - react native app ios 文件夹中的 pod install 未检测到我的 npm 包的依赖项
- angular - Angular/webpack 不在 @spartacus/storefront 中寻找 .d.ts 文件
- node.js - 在 Nodejs 中加密/解密 aes256cbc
- javascript - 在 Phaser 3 中传送到不同的 scipt
- core-data - SwiftUI:按核心数据属性分组和求和
- excel - IF/MATCH 语句在 Excel 上被视为 FALSE