简体   繁体   English

R Package 通过遥控器在 Github 中的依赖关系不起作用

[英]R Package Dependency in Github via Remotes not working

I'm developing an R package in Github ( ConceptionTools ) that depends on another R package ( CreateFlowChart ), also in Github. I'm developing an R package in Github ( ConceptionTools ) that depends on another R package ( CreateFlowChart ), also in Github. I have followed the instructions for defining remote dependencies .我已按照定义远程依赖项的说明进行操作 My DESCRIPTION file includes:我的说明文件包括:

Imports: CreateFlowChart
Remotes: github::IMI-ConcePTION/CreateFlowChart

However, when I install my package, with the command:但是,当我安装 package 时,使用以下命令:

devtools::install_github("IMI-ConcePTION/ConceptionTools")

This dependency is not installed.未安装此依赖项。 I simply get "skipping 1 packages not available: CreateFlowChart".我只是得到“跳过 1 个不可用的包:CreateFlowChart”。 It doesn't appear to be trying to use the Remote, since there is no error related to Github.它似乎没有尝试使用遥控器,因为没有与 Github 相关的错误。

When I install the dependency directly, that works:当我直接安装依赖项时,它有效:

devtools::install_github("IMI-ConcePTION/CreateFlowChart")

Does anybody have any idea of what could be going on here?有人知道这里会发生什么吗? I'm racking my brain, as it seems to be a quite straightforward case of what the documentation shows.我正在绞尽脑汁,因为这似乎是文档显示的一个非常简单的案例。 I'm using R 4.0.3 (on Windows 10) and devtools 2.3.2.我正在使用 R 4.0.3(在 Windows 10 上)和 devtools 2.3.2。

There was a typo in the name of the dependency package in its DESCRIPTION file.在其DESCRIPTION文件中,依赖项 package 的名称存在拼写错误。

This does not make the package fail when installing it directly, but it leads devtools not to find it as a dependency.这不会使 package 在直接安装时失败,但会导致 devtools 不会将其视为依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM