如何在r takexte`description'的“远程”字段中包含子目录。
假设我想在我的r软件包中使用依赖性的开发版本,因为它位于某个github分支上,但另一个并发症是它位于 subdirectory 中。
例如,如果我想依靠远程喜欢下载它:
remotes::install_github("glmmTMB/glmmTMB@ci_tweaks", subdir = "glmmTMB")
如果此软件包是不是基于子目录的,我可以将以下内容包括在 Description> Description
文件中:
Remotes: glmmTMB/glmmTMB@ci_tweaks
但是我不知道如何在此处指定子目录以获取软件包。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该知道,遥控器为您创建所有需要的描述文件字段。因此,我运行
远程:: install_github(“ glmmtmb/glmmtmb@ci_tweaks”,subdir =“ glmmtmb”)
,然后packagedEscription(“ glmmtmb”)
。查看添加了多少个远程和GITHUB连接的备案。例如远程图:glmmtmb
也有。You should know that remotes creates all needed DESCRIPTION file fields for you. So I run the
remotes::install_github("glmmTMB/glmmTMB@ci_tweaks", subdir = "glmmTMB")
and thenpackageDescription("glmmTMB")
. Check out how many Remote and Github connected fileds are added. There is e.g.RemoteSubdir: glmmTMB
too.Entries in
Remotes
that are intended to install from GitHub can take the following对于此示例,
远程
字段中的条目应为glmmtmb = github :: glmmtmb/glmmtmb/glmmtmb/glmmtmb/glmmtmb/glmmtmb@ci_tweaks@ci_tweaks@ci_tweaks@ci_tweaks
,glmmtmb
应出现在依赖>
中(或在类似的字段中,例如建议
)。Entries in
Remotes
that are intended to install from GitHub can take the following general form:For this example the entry in the
Remotes
field should beglmmTMB=github::glmmTMB/glmmTMB/glmmTMB@ci_tweaks
, andglmmTMB
should appear inDepends
(or in a similar field likeSuggests
).