OHDSI Home | Forums | Wiki | Github

ERROR: dependencies 'FeatureExtraction', 'PatientLevelPrediction', 'OhdsiSharing' are not available for package 'oneyearhypertension'


(Manindra) #1

ERROR: dependencies ‘FeatureExtraction’, ‘PatientLevelPrediction’, ‘OhdsiSharing’ are not available for package ‘oneyearhypertension’

Issue while loading Prediction package in R Studio.
When we click on Install and Restart button.

Tried to install above package with below command and success:

command:

install.packages(“drat”)
drat::addRepo(“OHDSI”)
install.packages(‘FeatureExtraction’)

Error:

.onLoad failed in loadNamespace() for ‘rJava’, details:
call: inDL(x, as.logical(local), as.logical(now), …)
error: unable to load shared object ‘C:/Users/gmehta1/Documents/R/win-library/3.6/rJava/libs/x64/rJava.dll’:
LoadLibrary failure: The specified module could not be found.

Error: package ‘DatabaseConnector’ could not be loaded
In addition: Warning message:
package ‘DatabaseConnector’ was built under R version 3.6.2
Execution halted
ERROR: lazy loading failed for package ‘FeatureExtraction’

  • removing ‘C:/Users/gmehta1/Documents/R/win-library/3.6/FeatureExtraction’
    Warning in install.packages :
    installation of package ‘FeatureExtraction’ had non-zero exit status

(Youjin Park) #2

How about running the codes below first before install and restart ?

# install.packages("devtools")
library(devtools)
install_github("ohdsi/FeatureExtraction")
install_github("ohdsi/PatientLevelPrediction")
install_github("ohdsi/OhdsiSharing")

Youjin Park
Ajou university, Korea


(Martijn Schuemie) #3

The error message suggests Java isn’t installed (or at least not the 64-bit version).

Could you try following the installation instructions for the OHDSI Methods Library in the Book of OHDSI ?


(Manindra) #4

I am using R 3.6.2

After running the “ohdsi/FeatureExtraction”) below error reproduced:

Error: package or namespace load failed for ‘DatabaseConnector’:
.onLoad failed in loadNamespace() for ‘rJava’, details:
call: inDL(x, as.logical(local), as.logical(now), …)
error: unable to load shared object ‘C:/Users/gmehta1/Documents/R/win-library/3.6/rJava/libs/x64/rJava.dll’:
LoadLibrary failure: The specified module could not be found.

Error: package ‘DatabaseConnector’ could not be loaded
Execution halted
ERROR: lazy loading failed for package ‘FeatureExtraction’

  • removing ‘C:/Users/gmehta1/Documents/R/win-library/3.6/FeatureExtraction’
    Error: Failed to install ‘FeatureExtraction’ from GitHub:
    (converted from warning) installation of package ‘C:/Users/gmehta1/AppData/Local/Temp/2/RtmpcXycCE/filedb03696870/FeatureExtraction_2.2.5.tar.gz’ had non-zero exit status

(Ajit Londhe) #5

Have you installed Java and assigned the JAVA_HOME OS variable?

Once you do, it can be helpful to run R CMD javareconf to ensure everything is assigned properly.


t