Connect to the GIGWA server. If the username or password parameters are missing, a login window will pop up to insert the username and password.
All other connection parameters (i.e., server IP or domain, connection port, API path, and connection protocol e.g., http://) will be retrieved from the `qbms_config` list.
This function will update both the qbms_config list (brapi connection object in the con key) and qbms_state list (token value in the token key).
Arguments
- username
The GIGWA username (optional, default is NULL).
- password
The GIGWA password (optional, default is NULL).
Author
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
Examples
if (interactive()) {
# Configure your GIGWA connection
set_qbms_config("http://localhost:59395/gigwa/index.jsp", time_out = 300, engine = "gigwa")
# Login using your GIGWA account (interactive mode)
login_gigwa()
# You can pass GIGWA username and password as parameters (batch mode)
# login_gigwa("gigwadmin", "nimda")
}