R软件包 - 如何指定仅在GitHub上可用的依赖项(又称Dev版本)
我需要修复R软件包的描述文件,我需要指定导入软件包的特定版本(即BrobdingNag(> = 1.2-8))。
但是该版本还没有在cran上(Cran只有1.2-7),而是在Github上。
因此,我尝试了:
Imports:
Brobdingnag (>= 1.2-8)
Remotes:
RobinHankin/Brobdingnag
但是我可以预见:
checking package dependencies ... ERROR
Package required and available but unsuitable version: ‘Brobdingnag’
如果我只使用:
devtools::install_github("RobinHankin/Brobdingnag")
我获得1.2-8版本而无需指定。
有什么想法解决这个问题吗?
谢谢大卫
I'm need to fix the Description file for an R package and I need to specify a specific version of imported package (i.e. Brobdingnag (>= 1.2-8) ).
But that version is not on Cran already (Cran has only up to 1.2-7) but is on github.
so I tried :
Imports:
Brobdingnag (>= 1.2-8)
Remotes:
RobinHankin/Brobdingnag
But I predictably get:
checking package dependencies ... ERROR
Package required and available but unsuitable version: ‘Brobdingnag’
And if I just use:
devtools::install_github("RobinHankin/Brobdingnag")
I get the 1.2-8 version without needing to specify it.
Any idea how to solve this ?
Thanks, David
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为指定这将解决您的问题
I think specifying this would solve your problem