Learn R Programming

QBMS (version 2.0.0)

login_breedbase: Login to the BreedBase Server

Description

Logs in to the BreedBase server using a username and password. If credentials are not provided, a pop-up window will prompt the user. The function is a wrapper around the login_bms() function, with encoding set to form.

Usage

login_breedbase(username = NULL, password = NULL)

Value

No return value. The access token is stored internally for future use.

Arguments

username

The username (optional, default is NULL).

password

The password (optional, default is NULL).

Author

Khaled Al-Shamaa (k.el-shamaa@cgiar.org)

Examples

Run this code
if(interactive()) {
  set_qbms_config("https://cassavabase.org/", engine = "breedbase")
  
  # Login using your BreedBase account (interactive mode)
  login_breedbase()
  
   # You can pass BreedBase username and password as parameters (batch mode)
   # login_breedbase("username", "password")
}

Run the code above in your browser using DataLab