Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R-安装具有github依赖项的包失败_R_Github_Cran_R Package_Drat - Fatal编程技术网

R-安装具有github依赖项的包失败

R-安装具有github依赖项的包失败,r,github,cran,r-package,drat,R,Github,Cran,R Package,Drat,我想安装一个依赖于github的包。在软件包的说明文件中 Imports: ggplot2, ggthemr Remotes: cttobin/ggthemr@0b2e7da43d4d2844b08b039510b31078 但是,当我尝试安装包时,作为依赖项从github自动安装ggthemr包失败,没有任何信息性错误消息。看起来好像它试图从CRAN而不是github安装依赖项 在我要从中安装软件包的存储库的PACKAGES文件(adratrepo)中,列出了导入,而没有列出远程。手动添加遥

我想安装一个依赖于github的包。在软件包的
说明
文件中

Imports: ggplot2, ggthemr
Remotes: cttobin/ggthemr@0b2e7da43d4d2844b08b039510b31078
但是,当我尝试安装包时,作为依赖项从github自动安装
ggthemr
包失败,没有任何信息性错误消息。看起来好像它试图从CRAN而不是github安装依赖项

在我要从中安装软件包的存储库的
PACKAGES
文件(a
drat
repo)中,列出了导入,而没有列出远程。手动添加遥控器线路并不能解决此问题


非常感谢您的帮助。

安装时使用的命令是什么?
install.packages
请尝试使用devtools::install\u github()…更新:我想以自动化方式安装
ggthemr
,作为我尝试安装的软件包的依赖项。如果您使用drat,那么为什么不把依赖链的所有元素都放到drat repo中呢?然后,
install.packages()
将起作用。在他们撞到克兰之前,做了一些事情。