getLoginDetails: getLoginDetails

Description Usage Details Value Author(s) References See Also Examples

View source: R/aveytoolkit_getLoginDetails.R

Description

Uses tcltk to display a prompt for a loginID and password

Usage

1

Details

This function displays a window for a user to enter a loginID and password without showing the password. It may be bad package etiquette that tcltk is required for this function but not imported in the NAMESPACE file. This is done because loading tcltk will not work without a display and I want to be able to use this package (even if not this function) without a display

Value

an invisible named vector of loginID and password

Author(s)

Markus Gesmann, Barry Rowlingson

References

http://www.r-bloggers.com/simple-user-interface-in-r-to-get-login-details/ http://r.789695.n4.nabble.com/tkentry-that-exits-after-RETURN-tt854721.html#none

See Also

tcltk

Examples

1
2
3
credentials <- getLoginDetails()
## Do what needs to be done with loginID and password
rm(credentials) # Delete credentials

stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.