Learn R Programming

rsynthbio (version 4.1.0)

has_synthesize_token: Check if Synthesize Bio API Token is Set

Description

Checks whether a Synthesize Bio API token is currently set in the environment. Useful for conditional code that requires an API token.

Usage

has_synthesize_token()

Arguments

Value

Logical, TRUE if token is set, FALSE otherwise.

Examples

Run this code
 if (FALSE) {
# Check if token is set
if (!has_synthesize_token()) {
  # Prompt for token if not set
  set_synthesize_token()
}
}

Run the code above in your browser using DataLab