get_program_studies: Get the list of trials studies locations information of the...

View source: R/qbms.R

get_program_studiesR Documentation

Get the list of trials studies locations information of the current selected program

Description

This function will retrieve all environments/locations information of the trials studies in the current active program as configured in the internal state object using 'set_program()' function.

Usage

get_program_studies()

Value

a data frame of locations information for each study in the program trials

Author(s)

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

See Also

login_bms, set_crop, set_program

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

# retrive all environments/locations information in the selected program studies/trials
program_studies <- get_program_studies()
}

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