【问题标题】:How to include a local repository that contains spaces in the Remotes field of an R package DESCRIPTION?如何在 R 包说明的 Remotes 字段中包含包含空格的本地存储库?
【发布时间】:2020-02-23 23:53:37
【问题描述】:

我正在开发的 R 包的依赖项之一是在本地目录中。使用 devtools/remotes 我可以通过在包说明中包含 Remotes: local::/path/to/the_repository 来指定此依赖项。

但是,我需要访问的路径包含空格,我无法弄清楚如何正确指定它。

到目前为止,我已经尝试过引用 (local::"~/path/to/the repository") 和转义 (local::~/path/to/the\ repository) 但我仍然得到 ​​p>

Error: Missing commas separating Remotes

有什么建议吗?

【问题讨论】:

标签: r devtools r-package


【解决方案1】:

我不知道如何解决这个问题。也许反引号会起作用?

local::`~/path/to/the repository`

祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-04-23
    • 1970-01-01
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-10
    相关资源
    最近更新 更多