Skip to contents

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.

Usage

get_program_studies()

Value

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

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