[英]R devtools and packages dependencies in DESCRIPTION Remotes
I would like to use a dev version of a package in my own package.我想在我自己的 package 中使用 package 的开发版本。 As detailed in devtools vignette , I included the following line of code in the DESCRIPTION file of my package:如devtools vignette中所述,我在 package 的说明文件中包含以下代码行:
Remotes: SciViews/svDialogs
tried also:也试过:
Remotes: SciViews/svDialogs@v1.0.2
Unfortunately, that dependency is not installed prior to the installation of my package.不幸的是,在安装我的 package 之前没有安装该依赖项。 Running, devtools::install_deps()
does not install that dependency, but installs any missing dependency in Imports
.运行时, devtools::install_deps()
不会安装该依赖项,但会在Imports
中安装任何缺少的依赖项。
On the other hand devtools::install_github("SciViews/svDialogs")
works as expected and installs the dev version of the package.另一方面devtools::install_github("SciViews/svDialogs")
按预期工作并安装 package 的开发版本。
Not sure if I am missing something important.不知道我是否遗漏了一些重要的东西。 Any ideas?有任何想法吗?
Thanks谢谢
Just in case anyone else runs in the some problem... Solution was provided by @jennybc on the package page .以防万一其他人遇到问题...解决方案由@jennybc 在package 页面上提供。
The dependency need to be listed in the Imports
section of the DESCRIPTION
too.依赖项也需要在DESCRIPTION
的Imports
部分中列出。 This is actually stated in the vignette but I somewhat missed.这实际上是在小插图中说明的,但我有点错过了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.