set_crop: Set the current active crop

View source: R/qbms.R

set_cropR Documentation

Set the current active crop

Description

This function will update the current active crop in the internal configuration object (including the brapi connection object).

Usage

set_crop(crop_name)

Arguments

crop_name

the name of the crop

Value

no return value

Author(s)

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

See Also

login_bms, list_crops

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

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