简体   繁体   English

在 R linux 中难以安装 package,dalton_rqi

[英]Difficulty installing a package in R linux, dalton_rqi

Downloaded package from below URL. Attempted to install using below command;从以下 URL 下载 package。尝试使用以下命令安装; response shown.响应显示。

library(dalton.rqi,lib.loc='/home/X/Desktop/')
Error: package ‘dalton.rqi’ was built before R 3.0.0: please re-install it

https://my.clevelandclinic.org/departments/anesthesiology/depts/outcomes-research/risk-quantification https://my.clevelandclinic.org/departments/anesthesiology/depts/outcomes-research/risk-quantification

It appears this is a compiled package that maybe I don't have the source for?看起来这是一个编译的 package,也许我没有源代码? Is there a way to force install of the package?有没有办法强制安装 package? I'm unable to install using Rstudio GUI in its current form as a zip. Tried repackaging to tar.gz has Rstudio was looking for and also had a non-zero exit status error.我无法使用当前形式的 Rstudio GUI 作为 zip 进行安装。尝试重新打包到 tar.gz 有 Rstudio 正在寻找并且也有非零退出状态错误。

Any ideas?有任何想法吗?

I'm afraid this can't be achieved directly.这恐怕无法直接实现。 The error message says it well: to use a package in R it needs to be built on an R version matching yours.错误消息说得很好:要在 R 中使用 package,它需要构建在与您的相匹配的 R 版本上。

I can suggest two ways to move forward:我可以建议两种前进的方式:

  1. Contact the authors, ask for the R sources (it is somewhat surprising they did not make them available in the first place), and build the package yourself.联系作者,索要 R(他们一开始没有提供它们有点令人惊讶),然后自己构建 package。
  2. Downgrade your R version as far back as needed to match the one this pre-built package used.根据需要将您的 R 版本降级到与此预构建的 package 使用的版本相匹配的版本。

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

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