簡體   English   中英

如何在 R 包描述的 Remotes 字段中包含包含空格的本地存儲庫?

[英]How to include a local repository that contains spaces in the Remotes field of an R package DESCRIPTION?

我正在開發的 R 包的依賴項之一是在本地目錄中。 使用 devtools/remotes 我可以通過在包描述中包含Remotes: local::/path/to/the_repository來指定這種依賴關系。

但是,我需要訪問的路徑包含空格,我無法弄清楚如何正確指定它。

到目前為止,我已經嘗試引用( local::"~/path/to/the repository" )和轉義( local::~/path/to/the\\ repository ),但我仍然得到

Error: Missing commas separating Remotes

有什么建議嗎?

我不知道如何解決這個問題。 也許反引號會起作用?

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

祝你好運!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM