Github 中的 R 包依赖关系通过 Remotes 无法正常工作
R Package Dependency in Github via Remotes not working
我正在 Github(ConceptionTools) that depends on another R package (CreateFlowChart), also in Github. I have followed the instructions for defining remote dependencies 中开发一个 R 包。我的 DESCRIPTION 文件包括:
Imports: CreateFlowChart
Remotes: github::IMI-ConcePTION/CreateFlowChart
但是,当我安装我的包时,使用命令:
devtools::install_github("IMI-ConcePTION/ConceptionTools")
未安装此依赖项。我只是得到“跳过 1 个不可用的包:CreateFlowChart”。它似乎没有尝试使用 Remote,因为没有与 Github.
相关的错误
当我直接安装依赖项时,效果很好:
devtools::install_github("IMI-ConcePTION/CreateFlowChart")
有人知道这里会发生什么吗?我正在绞尽脑汁,因为这似乎是文档显示内容的一个非常简单的案例。我正在使用 R 4.0.3(在 Windows 10 上)和 devtools 2.3.2.
DESCRIPTION
文件中的依赖包名称有错别字。
这不会导致直接安装时包失败,但会导致 devtools 找不到它作为依赖。
我正在 Github(ConceptionTools) that depends on another R package (CreateFlowChart), also in Github. I have followed the instructions for defining remote dependencies 中开发一个 R 包。我的 DESCRIPTION 文件包括:
Imports: CreateFlowChart
Remotes: github::IMI-ConcePTION/CreateFlowChart
但是,当我安装我的包时,使用命令:
devtools::install_github("IMI-ConcePTION/ConceptionTools")
未安装此依赖项。我只是得到“跳过 1 个不可用的包:CreateFlowChart”。它似乎没有尝试使用 Remote,因为没有与 Github.
相关的错误当我直接安装依赖项时,效果很好:
devtools::install_github("IMI-ConcePTION/CreateFlowChart")
有人知道这里会发生什么吗?我正在绞尽脑汁,因为这似乎是文档显示内容的一个非常简单的案例。我正在使用 R 4.0.3(在 Windows 10 上)和 devtools 2.3.2.
DESCRIPTION
文件中的依赖包名称有错别字。
这不会导致直接安装时包失败,但会导致 devtools 找不到它作为依赖。