set_program: Set the current active breeding program

View source: R/qbms.R

set_programR Documentation

Set the current active breeding program

Description

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.

Usage

set_program(program_name)

Arguments

program_name

the name of the breeding program

Value

no return value

Author(s)

Khaled Al-Shamaa, k.el-shamaa@cgiar.org

See Also

login_bms, set_crop, list_programs

Examples

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

khaled-alshamaa/QBMS documentation built on Jan. 27, 2024, 6:40 a.m.