set_program: Set the Current Active Breeding Program

View source: R/qbms.R

set_programR Documentation

Set the Current Active Breeding Program

Description

Updates the internal state to set the selected breeding program as active using the associated programDbId. This allows subsequent operations to be carried out within the context of this program.

Usage

set_program(program_name)

Arguments

program_name

A string specifying the name of the breeding program to set as active.

Value

No return value. The internal state is updated with the selected program.

Author(s)

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

See Also

login_bms, set_crop, list_programs for related operations in the crop and program selection process.

Examples

if (interactive()) {
  set_qbms_config("https://bms.icarda.org/ibpworkbench")
  login_bms()  # Log in to the server
  set_crop("wheat")  # Set crop
  set_program("Wheat International Nurseries")  # Set breeding program
}


icarda-git/QBMS documentation built on Sept. 25, 2024, 10:45 p.m.