Way to securely give a password to R application from the terminal?

前端 未结 5 708
闹比i
闹比i 2020-11-29 04:24

Does R have a function that allows a user to provide a password securely, such as Python\'s getpass module?

(see http://docs.python.org/library/getpass.

5条回答
  •  抹茶落季
    2020-11-29 04:53

    Per m-dz in the comments above, there is a now a package for doing this called getPass, which has a single function, getPass(). This is a replacement for base::readline().

提交回复
热议问题