Site icon R-bloggers

Password Input with getPass

[This article was first published on wrathematics, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

As of this morning, the getPass package version 0.1-1 is available on CRAN. The package offers a portable way to read user input without echoing the text, for the purposes of reading passwords. Some screenshots from various platforms are given below.

Implementation details are described in the package vignette. The short version is, if you use…

If none of these options is available for your platform/interface, then a backup version without masking can be used, via R’s readline(). I believe this supports just about everything, except emacs+ess, which I don’t think can be supported (if you have any ideas, please let me know). If you discover any problems, please file an issue.

To leave a comment for the author, please follow the link and comment on their blog: wrathematics.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.