Skip to contents

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)

Arguments

username

The username (optional, default is NULL).

password

The password (optional, default is NULL).

Value

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

Author

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

Examples

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")
}