set_program | R Documentation |
This function will update the current active breeding program in the internal state object using the programDbId retrieved from BMS which is associated to the given program_name parameter.
set_program(program_name)
program_name |
the name of the breeding program |
no return value
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
login_bms
, set_crop
, list_programs
if(interactive()) {
# config your BMS connection
set_qbms_config("https://bmsdev-brapi.ibp.services/ibpworkbench")
# login using your BMS account (interactive mode)
# you can pass BMS username and password as parameters (batch mode)
login_bms()
set_crop("maize")
# select a breeding program by name
set_program("MC Maize")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.