VRPM包安装失败解决方案:had non-zero exit status

目录

VRPM包安装失败解决方案:had non-zero exit status

#VRPM包安装

#找到VRPM包的文件地址手动安装

#尝试添加依赖

#尝试套用如下方案

#尝试使用Rstudio

#接着继续使用Rstudio本地安装VRPM包成功


#VRPM包安装

install.packages("VRPM")
# library(VRPM)
# help(VRPM)
Warning message:
"package 'VRPM' is not available for this version of RA version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages"

#找到VRPM包的文件地址手动安装

# packageurl <- "https://cran.r-project.org/src/contrib/Archive/ElemStatLearn/ElemStatLearn_2015.6.26.tar.gz"
packageurl <- "https://cran.r-project.org/src/contrib/Archive/VRPM/VRPM_1.2.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

 安装出现如下错误:

Warning message in install.packages(packageurl, repos = NULL, type = "source"):
"installation of package 'C:/Users/user~1/AppData/Local/Temp/RtmpmYFIj5/downloaded_packages/VRPM_1.1.tar.gz' had non-zero exit status"

#尝试添加依赖

packageurl <- "https://cran.r-project.org/src/contrib/Archive/VRPM/VRPM_1.2.tar.gz"
# packageurl <- "https://cran.r-project.org/src/contrib/Archive/VRPM/VRPM_1.2.tar.gz"
# install.packages(packageurl, repos=NULL, type="source")
# dependencies = T
# install.packages(packageurl, repos=NULL, type="source",dependencies = TRUE)
install.packages(packageurl, repos=NULL, type="source",dependencies = c("Depends"))
#可能依赖又不在这个目录下,所以依旧had non-zero exit status

#尝试套用如下方案

download.file('http://stat-athens.aueb.gr/~jbn/papers/files/14/14_bivpois_RDATA.zip', f <- tempfile())
unzip(f, exdir=tempdir())
load(file.path(tempdir(), '.RData'))

#有人说可能是文件包解压不彻底,及压缩包内还有压缩包

#获取包安装路径查看,根本都没有形成包,,,,

(.libPaths())

折腾了好久,,,

笔者平时一般都是使用jupyter,即在jupyter中使用R环境;

#尝试使用Rstudio

下载安装包(下载链接https://cran.r-project.org/src/contrib/Archive/VRPM/) →打开Rstudio→点击菜单栏中的Tools→在弹窗的Install from中选择“Package Archive File (.zip; .tar; .gz)”→点击Browse,选择压缩包→点击Install。

> install.packages("D:/Downloads/VRPM_1.2.tar.gz", repos = NULL, type = "source")
ERROR: dependencies 'fields', 'R2HTML', 'kernlab', 'ROCR', 'shiny' are not available for package 'VRPM'
* removing 'D:/R/R-4.0.5/library/VRPM'
Warning in install.packages :
  installation of package ‘D:/Downloads/VRPM_1.2.tar.gz’ had non-zero exit status

#安装虽然依旧失败,但是最起码指明了方向;

#补齐依赖包

# install.packages("VRPM")
# library(VRPM)
# help(VRPM)
#  'fields', 'R2HTML', 'kernlab', 'ROCR', 'shiny'
install.packages(c('fields', 'R2HTML', 'kernlab', 'ROCR', 'shiny'))
还安装相依关系'dotCall64', 'spam', 'fontawesome', 'htmltools', 'bslib'
package 'dotCall64' successfully unpacked and MD5 sums checked
package 'spam' successfully unpacked and MD5 sums checked
package 'fontawesome' successfully unpacked and MD5 sums checked
package 'htmltools' successfully unpacked and MD5 sums checked
Warning message:
"cannot remove prior installation of package 'htmltools'"
Warning message in file.copy(savedcopy, lib, recursive = TRUE):
"拷贝D:\anaconda\envs\r4-base\lib\R\library\00LOCK\htmltools\libs\x64\htmltools.dll到D:\anaconda\envs\r4-base\lib\R\library\htmltools\libs\x64\htmltools.dll时出了问题:Permission denied "
Warning message:
"restored 'htmltools'"
package 'bslib' successfully unpacked and MD5 sums checked
package 'fields' successfully unpacked and MD5 sums checked
package 'R2HTML' successfully unpacked and MD5 sums checked
package 'kernlab' successfully unpacked and MD5 sums checked
package 'ROCR' successfully unpacked and MD5 sums checked
package 'shiny' successfully unpacked and MD5 sums checkedThe downloaded binary packages are inC:\Users\liguangdi\AppData\Local\Temp\Rtmp0Ge1aY\downloaded_packages

#注意其中发生了一个permission的错误:

继续在Rstudio中执行

install.packages(c('fields', 'R2HTML', 'kernlab', 'ROCR', 'shiny'))

#接着继续使用Rstudio本地安装VRPM包成功

> install.packages("D:/Downloads/VRPM_1.2.tar.gz", repos = NULL, type = "source")
* installing *source* package 'VRPM' ...
** 成功将'VRPM'程序包解包并MD5和检查
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'VRPM'
    finding HTML links ... 好了
    HTMLsummary                             html  
    ccchart                                 html  
    cchart                                  html  
    colplot                                 html  
    plotperf                                html  
    preplotperf                             html  
    runVRPMexample                          html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (VRPM)
> library(VRPM)
>


This is a package to visualize risk prediction models. For each predictor, a color bar represents the contribution to the linear predictor or latent variable. A conversion from the linear predictor to the estimated risk or survival is also given. (Cumulative) contribution charts enable to visualize how the estimated risk for one particular observation is obtained by the model. Several options allow to choose different color maps, and to select the zero level of the contributions. The package is able to deal with 'glm', 'coxph', 'mfp', 'multinom' and 'ksvm' objects. For 'ksvm' objects, the visualization is not always exact. Functions providing tools to indicate the accuracy of the approximation are provided in addition to the visualization.
参考:安装r包报错“package 'robustbase' had non-zero exit status”_BIO_Shixxy-程序员宅基地

参考:Visualising statistical models using dynamic nomograms

参考:在R中安装脱字号软件包时的依赖性问题

参考:"installation of package 'FILE_PATH' had non-zero exit status" in R

参考:VRPM: Visualizing Risk Prediction Models

参考:https://cran.r-project.org/src/contrib/Archive/VRPM/

参考:non-zero exit status - installing from tar.gz

参考:Fixed: installation of a package had non-zero exit status

参考:介绍一种全新的彩色列线图

参考:R教程:教你绘制5种类型的诺莫图 (列线图)

VRPM包安装失败解决方案:had non-zero exit status相关推荐

  1. yarn install node-sass(gulp-sass) 安装失败解决方案

    yarn install node-sass(gulp-sass) 安装失败解决方案 参考文章: (1)yarn install node-sass(gulp-sass) 安装失败解决方案 (2)ht ...

  2. dlib在线安装失败解决方案,如何离线下载和安装

    问题 pip install 安装失败 解决方案 1 寻找离线安装文件 手动搜索:https://pypi.org/simple/dlib/ 2 下载 3 解压并切换到相应的目录 4 安装 pytho ...

  3. solidwork2018安装失败解决方案

    solidwork2018安装失败解决方案 我第一次安装solidwork2018遇到同样问题,下图解决办法帮我搞定了. 参考地址:https://zhidao.baidu.com/question/ ...

  4. 树莓派mysql安装失败- 解决方案

    树莓派 mysql安装失败解决方案 使用树莓派安装树莓派准备工作 一 . 树莓派基金会资源 1. SSH 指令更换: 2. VNC文件编辑方式更换 二.树莓派资源更换 1. SSH 替换 2. VNC ...

  5. SW2020安装失败解决方案

    SW2020安装失败解决方案 错误代码"无法获得下列许可 -(85440)-" https://blog.csdn.net/weixin_45857444/article/deta ...

  6. VS2010安装失败 解决方案

    VS2010安装失败 解决方案 参考文章: (1)VS2010安装失败 解决方案 (2)https://www.cnblogs.com/GISRSMAN/p/4558079.html 备忘一下.

  7. Eclipse——e(fx)clipse下载错误导致的安装失败解决方案

    问题描述 e(fx)clipse安装失败,下载速度慢,下载错误. 问题分析 可能是需要访问外网,有些jar包下载不下来. 解决方案 方法一 改用国内的e(fx)clipse源. 方法二 用安装包安装e ...

  8. Eclipse——WindowBuilder下载错误导致的安装失败解决方案

    问题描述 WindowBuilder安装失败,下载速度慢,下载错误. 问题分析 可能是需要访问外网,有些jar包下载不下来. 解决方案 方法一 改用国内的WindowBuilder源. 方法二 用安装 ...

  9. Microsoft Office 2007 安装解除安装失败解决方案

    您可曾遇到过这样的情况,在打开的一个WORD.EXCEL文档的时候,突然发现昨天才编辑过的文档,今天怎么就不能编辑了?那么在遇到这样的情况时候不用怕,也大可放心,这并不是病毒木马在作祟.只因为你的Of ...

最新文章

  1. linux access函数判断文件存取权限
  2. 多形态MVC式Web架构:完成实时响应
  3. virtualBox 不通主机
  4. (vue基础试炼_05)简单组件之间的传值
  5. 在阿里云服务器Windows Server 2012r IIS 上部署.NET网站
  6. 重启iis与mysql服务器吗_每晚定时重启IIS和数据库服务可节省服务器资源
  7. 回调地狱以及用promise怎么解决回调地狱
  8. 【ArcGIS教程01】前言
  9. 2030影院群站专用苹果CMS10自适应手机电影整站源码影视模板下载
  10. [绍棠] This In-App purchase has already been bought. It will be restored for free.
  11. 硬盘的修复(三)恢复删除文件
  12. 开启注册丨ACL-IJCAI-SIGIR顶级会议论文报告会(AIS 2020)
  13. Activemq优点和缺点
  14. 安装vue-cli脚手架使用swiper
  15. JavaScript:实现AlphaNumericalSort字母数字排序算法(附完整源码)
  16. 《人生的智慧》-叔本华著[韦启昌-(译)]
  17. MLAPP————第六章 频率派统计
  18. 对称矩阵的判定 C语言 SDUT
  19. h5与安卓交互 唤起手机照相、相册、摄影 视频播放 图片上传 录音 拨打电话
  20. 加密交易所的新战场:高频交易

热门文章

  1. Python的控制语句1
  2. java 支持 shards 的jar_Hibernate Shards 数据的水平、垂直切割(一)- Hibernate测试环境...
  3. 从LSTM到GRU基于门控的循环神经网络总结
  4. 卫星覆盖分析传感器类型
  5. 全面感知通用目标:建模、分割和重建(CVPR2021)
  6. 重磅! SLAM从入门到精通系统教程汇总
  7. 计算机视觉专业术语总结:构建计算机视觉的知识体系
  8. ORBBuf : 一种鲁棒的视觉SLAM缓冲方法
  9. 车道线检测:几何约束联合车道分割和车道边界检测
  10. Mask_YOLO_Caffe:基于Mask-RCNN和YOLO检测的工程实现(附源代码)