userInput | R Documentation |
this is useful for asking the user for a username or password, so that it goes directly to a variable and doesn't get inadvertently saved into an R script. There are no arguments. This will only return a character string. This is low key, don't bother using it for data entry. Just type characters, no need to put it in quotes, pressing enter will cause the function to return. Output will not be printed to the console, but it can be assigned directly. This is useful to have as an auxiliary function in case multiple calls to functions such as readHMDweb()
are desired.
userInput(silent = FALSE)
silent |
logical should a little prompt be given, telling the user to enter text in the console? |
a character string, as given by the user.
### mypassword <- userInput()
### myusername <- userInput()
### DAT <- readHMDweb("USA","mltper_1x1",mypassword,myusername)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.