Description Usage Arguments Details Functions Examples
Set and forget the user name and the password to be connected to the Traitbase API.
1 2 3 4 5 |
user |
a character string containing the user name. |
pwd |
a character string containing the password name. |
set_login()
sets the environmental variables TRAITBASE_USER
, TRAITBASE_PWD
for the current R session. Note that if you want to set then permanently,
you can add them in .Renviron
, or your .Rprofile
(see Startup
).
set_login()
retrieves TRAITBASE_USER
, TRAITBASE_PWD
and calls set_login()
if not set.
set_login
: set the environment variable SPECIESPLUS_TOKEN
.
forget_login
: forget the environment variables TRAITBASE_USER' and 'TRAITBASE_PWD
.
get_login
: get the environment variables TRAITBASE_USER' and 'TRAITBASE_PWD
, calls
1 2 3 4 | # NB the password below is false.
set_login(user = 'KevCaz', pwd = 'you')
# interactively
forget_login()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.