EHDEN / CdmInspection

R Package to support quality control inspection of an OMOP-CDM instance
Apache License 2.0
11 stars 16 forks source link

Following instructions for a clean install does not work #37

Closed dave600b closed 3 years ago

dave600b commented 3 years ago

Hi, Running remotes::install_github("EHDEN/CdmInspection")

Results in an error of: Error: Failed to install 'CdmInspection' from GitHub: (converted from warning) package ‘ROhdsiWebApi’ is not available for this version of R

I'm using R version 4.0.3 (I realise the instructions say R4.0.1 but am hoping that a minor version bump is not causing this issue.)

Just following the instructions and installing as I go.

PRijnbeek commented 3 years ago

Could you try to install ROhdsiWebApi and try again?

scossin commented 3 years ago

We encountered the same error. I think it's a bit confusing if you (@dave600b) are new to the R language because it only means the package was not found on the CRAN website. To install it:

remotes::install_github("OHDSI/ROhdsiWebApi")

Since this is the only package not available on CRAN and this package only uses one function "ROhdsiWebApi::getWebApiVersion" to send a HTTP request to WebAPI, another solution could be to put this function in the CdmInspection package (@PRijnbeek). It's against the "Don't repeat yourself" principle but the package would be easier to install and would have less external dependencies.

PRijnbeek commented 3 years ago

Thanks, I will look into that.

dave600b commented 3 years ago

Thank you, I will try this tomorrow. (scossin, you are correct I'm learning R and its ecosystem, thank you)