Error in system2("cp", "--version", stdout = TRUE, stderr = FALSE) :

Hello

I am trying to install a package in github. I get the following error.

library("devtools")
Loading required package: usethis
install_github("ohdsi/SqlRender")
Downloading GitHub repo ohdsi/SqlRender@master
:heavy_check_mark: checking for file ‘/private/var/folders/22/pz8hk02x2hj985j4klbz5gkm0000gp/T/Rtmp6ZhYtl/remotes8ca967313777/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/Rtmp6ZhYtl/remotes8ca967313777/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

I also installed XCode command line tool. Confirmed I have XCode installed

xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Still the same error. Any help?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.