如何避免“ R软件包的状态为128”错误

问题描述 投票:0回答:1

我正在尝试从此安装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)```

感谢您提出任何补救措施。

r rstudio devtools r-package install.packages
1个回答
0
投票
存储库为OHDSI/StudyProtocolSandbox;您想要的软件包位于其中的子目录中。所以你需要

devtools::install_github("OHDSI/StudyProtocolSandbox", subdir = "ConceptPrevalence")

© www.soinside.com 2019 - 2024. All rights reserved.