Safe Password Entry for R, Git, and SSH

Cross-platform utilities for prompting the user for credentials or a passphrase, for example to authenticate with a server or read a protected key. Includes native programs for MacOS and Windows, hence no 'tcltk' is required. Password entry can be invoked in two different ways: directly from R via the askpass() function, or indirectly as password-entry back-end for 'ssh-agent' or 'git-credential' via the SSH_ASKPASS and GIT_ASKPASS environment variables. Thereby the user can be prompted for credentials or a passphrase if needed when R calls out to git or ssh.



  • Fix build on R 3.3 and older
  • Fix compiler warning on Solaris


  • Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1 by Jeroen Ooms, 3 years ago

Report a bug at

Browse source code at

Authors: Jeroen Ooms [aut, cre]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports sys

Suggests testthat

Imported by conflr, credentials, fidelius, gert, gpg, keyring, multilinguer, newsanchor, openssl, qpdf, ssh, theiaR.

Suggested by httr2, oskeyring, rt, staRdom.

See at CRAN