has_synthesize_token: Check if Synthesize Bio API Token is Set

View source: R/key-handlers.R

has_synthesize_tokenR Documentation

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

Value

Logical, TRUE if token is set, FALSE otherwise.

Examples

 ## Not run: 
# Check if token is set
if (!has_synthesize_token()) {
  # Prompt for token if not set
  set_synthesize_token()
}

## End(Not run)

rsynthbio documentation built on June 8, 2025, 12:11 p.m.