tests/testdata/askpass/R/ssh.R

#' ASKPASS CMD TOOL
#'
#' This returns the path to the native askpass executable which can be used
#' by git-credential or ssh-agent. Most users don't have worry about this.
#'
#' On Windows and MacOS the package automatically sets the `SSH_ASKPASS` and
#' `GIT_ASKPASS` variables on load (if not already set). If these are set
#' you should be able to run e.g. `sys::exec_wait("ssh-add")` and you should
#' be prompted for a passphrase if your key is protected.
#'
#' @export
ssh_askpass <- function(){
  askpass_path(simple = FALSE)
}

Try the rang package in your browser

Any scripts or data that you put into this service are public.

rang documentation built on Oct. 8, 2023, 5:06 p.m.