amber.login | R Documentation |
Open a connection with Amber and returns an Amber object. When the two-factor authentication mechanism is enabled, the user will be prompt for one-time password input.
amber.login(
username = getOption("amber.username", "anonymous"),
password = getOption("amber.password", "password"),
url = getOption("amber.url"),
opts = getOption("amber.opts", list())
)
username |
User name in Amber. Can be provided by "amber.username" option. |
password |
User password in Amber. Can be provided by "amber.password" option. |
url |
Amber url. Can be provided by "amber.url" option. Secure http (https) connection is required. |
opts |
Curl options. Can be provided by "amber.opts" option. |
An Amber object
An amber connection object to be used in further function calls
## Not run:
# login using credentials from amber.username and amber.password options
a <- amber.login("https://amber-demo.obiba.org")
# login by providing credentials
a <- amber.login("administrator", "password", "https://amber-demo.obiba.org")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.