list_programs: Get the list of breeding programs names

View source: R/qbms.R

list_programsR Documentation

Get the list of breeding programs names

Description

This function will retrieve the breeding programs list from the current active crop as configured in the internal configuration object using 'set_crop()' function.

Usage

list_programs()

Value

a list of breeding programs names

Author(s)

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

See Also

login_bms, set_crop

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

# list existing breeding programs
list_programs()
}

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