Skip to content

Instantly share code, notes, and snippets.

@Btibert3
Created August 14, 2012 12:58
Show Gist options
  • Select an option

  • Save Btibert3/3349072 to your computer and use it in GitHub Desktop.

Select an option

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
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