Skip to contents

Create a BrAPI connection to the specified host

Usage

createBrAPIConnection(
  host = NULL,
  protocol = NULL,
  path = NULL,
  version = NULL
)

Arguments

host

The BrAPI server hostname

protocol

(optional) the HTTP protocol (either 'http' or 'https') (DEFAULT: https)

path

(optional) the base path to the BrAPI endpoints (without the version) (DEFAULT: /brapi/)

version

(optional) the BrAPI version to use (DEFAULT: v2)

Value

BrAPIConnection

Examples

wheat <- createBrAPIConnection("wheat.triticeaetoolbox.org")
oatv1 <- createBrAPIConnection("oat.triticeaetoolbox.org", version="v1")