简体   繁体   中英

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

One of the dependecies for an R package I'm developing is in a local directory. Using devtools/remotes I can specify this dependency by including Remotes: local::/path/to/the_repository in the package DESCRIPTION.

However, the path I need to access contains spaces and I cannot figure out how to specify it correctly.

So far I've tried quoting ( local::"~/path/to/the repository" ) and escaping ( local::~/path/to/the\\ repository ) but I still get

Error: Missing commas separating Remotes

Any suggestion?

I am not sure how to solve this one. Perhaps backticks would work?

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

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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