I am trying to install OHDSI in Mac OS Mojave with dart.
install.packages(“drat”)
drat::addRepo(“OHDSI”)
install.packages(“PatientLevelPrediction”)
I recive the following errors,
install.packages(“PatientLevelPrediction”)
Installing package into ‘/Users/u0979082/packrat/lib/x86_64-apple-darwin15.6.0/3.6.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://OHDSI.github.io/drat/bin/macosx/el-capitan/contrib/3.6:
cannot open URL ‘https://OHDSI.github.io/drat/bin/macosx/el-capitan/contrib/3.6/PACKAGES’
package ‘PatientLevelPrediction’ is available as a source package but not as a binary
Warning in install.packages :
package ‘PatientLevelPrediction’ is not available (as a binary package for R version 3.6.1)
I have R Studio : Version 1.2.5001 and R version 3.6.1.
Since this method did not work I also tried to install using devtools. However, I get the following errors when I tried to install SqlRender.
install_github(“ohdsi/SqlRender”)
Downloading GitHub repo ohdsi/SqlRender@master
checking for file ‘/private/var/folders/22/pz8hk02x2hj985j4klbz5gkm0000gp/T/Rtmp6OoEMP/remotes473a48b130ca/OHDSI-SqlRender-2fc4405/DESCRIPTION’ …
Error in system2(“cp”, “–version”, stdout = TRUE, stderr = FALSE) :
error in running command
Execution halted
sh: rm: command not found
Error: Failed to install ‘SqlRender’ from GitHub:
System command error, exit status: 1, stdout + stderr:
E> * checking for file ‘/private/var/folders/22/pz8hk02x2hj985j4klbz5gkm0000gp/T/Rtmp6OoEMP/remotes473a48b130ca/OHDSI-SqlRender-2fc4405/DESCRIPTION’ … OK
E> Error in system2(“cp”, “–version”, stdout = TRUE, stderr = FALSE) :
E> error in running command
E> Execution halted
E> sh: rm: command not found
According to some forums, this is a sign that I do not have XCode. However, in my case I have XCode already installed.
“xcode-select --install
xcode-select: error: command line tools are already installed, use “Software Update” to install updates”
I greatly appreciate if anybody could help me with this issue.