我正在尝试从此r安装repository软件包
install.packages("devtools")
devtools::install_github("OHDSI/StudyProtocolSandbox/ConceptPrevalence")
当我执行上述代码的第二行时,出现以下错误:
"C:\PROGRA~1\Git\cmd\git.exe" clone --depth 1 --no-hardlinks --recurse-submodules https://github.com/NEONKID/RCDM-ETL C:\Users\test\AppData\Local\Temp\RtmpoDDE3h\remotes5fe862d7185f/OHDSI-StudyProtocolSandbox-536420f/ConceptPrevalence/../RCDM-ETL "C:\PROGRA~1\Git\cmd\git.exe" clone --depth 1 --no-hardlinks --recurse-submodules https://github.com/aostropolets/ConceptPrevalence.git C:\Users\test\AppData\Local\Temp\RtmpoDDE3h\remotes5fe862d7185f/OHDSI-StudyProtocolSandbox-536420f/ConceptPrevalence/../ConceptPrevalence 2020-04-05 17:29:57 running command '"C:\PROGRA~1\Git\cmd\git.exe" clone --depth 1 --no-hardlinks --recurse-submodules https://github.com/aostropolets/ConceptPrevalence.git C:\Users\test\AppData\Local\Temp\RtmpoDDE3h\remotes5fe862d7185f/OHDSI-StudyProtocolSandbox-536420f/ConceptPrevalence/../ConceptPrevalence' had status 128 Error: Failed to install 'ConceptPrevalence' from GitHub: Command failed (128)```
感谢您提出任何补救措施。
OHDSI/StudyProtocolSandbox
;您想要的软件包位于其中的子目录中。所以你需要devtools::install_github("OHDSI/StudyProtocolSandbox", subdir = "ConceptPrevalence")