devtools::install_git Over SSH
问题 I've written an R package that I keep in a (bare) git repository on an SSH server, and I want to be able to install it on a local machine without needing to clone the repository by hand. I've attempted the following: devtools::install_git("ssh://user_name@remote/path/to/repository") but I get the error Downloading git repo ssh://user_name@remote/path/to/repository Error in git2r::clone(x$url, bundle, progress = FALSE) : Error in 'git2r_clone': Failed to start SSH session: Unable to exchange