Configures the BMS server connection settings, including URL, API path, page size, and timeout. This function allows you to set up the connection for different server backends like BMS, Gigwa, EBS, and Breedbase, and choose the appropriate BrAPI version.
set_qbms_config(
url = "http://localhost",
path = NULL,
page_size = 1000,
time_out = 120,
no_auth = FALSE,
engine = "bms",
brapi_ver = "v1",
verbose = TRUE
)
No return value.
The URL of the BMS login page or API base (default is "http://localhost").
The API path to use (default is NULL, which sets a path based on the engine).
The number of records per page when making API calls (default is 1000).
The maximum number of seconds to wait for a response (default is 120).
Logical, whether the server requires authentication (default is FALSE).
The backend system (default is "bms"). Options include "bms", "gigwa", "breedbase", "ebs".
The version of BrAPI to use, either "v1" or "v2" (default is "v1").
Logical, indicating whether to display progress information when making API calls (default is TRUE).
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
set_qbms_config("https://bms.icarda.org/ibpworkbench")
Run the code above in your browser using DataLab