OHDSI Home | Forums | Wiki | Github

Error in vapply(x, f, ..., FUN.VALUE = character(1)) : -- install.packages error occurred in Atlas Prediction R project package

Hi team,
I downloaded R package from Atlas Prediction. Then have trouble for renv::restore() or install.packages functions. Below is the error message. However, utils::install.packages() works. Do not know why. Never saw it before. Can anyone help me fix it? Thanks

install.packages(‘rJava’)
Error in vapply(x, f, …, FUN.VALUE = character(1)) :
values must be length 1,
but FUN(X[[5]]) result is length 0
In addition: Warning messages:
1: curl: (22) The requested URL returned error: 422
2: failed to resolve remote ‘ohdsi/PatientLevelPrediction@issue242’ from project DESCRIPTION file; skipping

t