Get the List of Trials/Studies/Locations Information of the Current Selected Program
Source:R/qbms.R
get_program_studies.Rd
Retrieves all environments/locations information of the trials studies in the current active program as configured in the internal state object using the `set_program()` function.
Author
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
Examples
if(interactive()) {
# config your server connection
set_qbms_config("https://bms.icarda.org/ibpworkbench")
# login using your account (interactive mode)
# you can pass your username and password as parameters (batch mode)
login_bms()
# Select a crop by name
set_crop("wheat")
# select a breeding program by name
set_program("Wheat International Nurseries")
# retrieve all environments/locations information in the selected program studies/trials
program_studies <- get_program_studies()
}