Created
August 14, 2012 12:58
-
-
Save Btibert3/3349072 to your computer and use it in GitHub Desktop.
A quick way to grab user credentials at run-time from the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user_credentials <- function() { | |
| # capture the user name | |
| U <- readline("Account username: ") | |
| # capture the password | |
| P <- readline("Account password: ") | |
| # return the data as a list | |
| return(list(U,P)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment