简体   繁体   中英

Difficulty installing a package in R linux, dalton_rqi

Downloaded package from below URL. Attempted to install using below command; 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

It appears this is a compiled package that maybe I don't have the source for? Is there a way to force install of the 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.

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.

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.
  2. Downgrade your R version as far back as needed to match the one this pre-built package used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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