If you need to authenticate yourself, you can do this with the authenticate() function. am_i_brandseye() is a useful method for determining if you're a staff member or not. The raise_error method makes whoami() an easy way to determine if the user is authenticated, and to raise an error if not.

whoami(raise_error = FALSE)

Arguments

raise_error

If this is set to TRUE, the function will raise an error instead of returning NULL if you are not authenticated.

Value

Returns NULL if you are not logged in, otherwise returns your current authentication credentials.

Author

Constance Neeser