如何在R程序包的Remotes字段中包含一个包含空格的本地存储库?

问题描述 投票:2回答:1

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

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

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

Error: Missing commas separating Remotes

有任何建议吗?

r devtools r-package
1个回答
0
投票

我不确定该如何解决。反引号也许会起作用?

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

祝你好运!

© www.soinside.com 2019 - 2024. All rights reserved.