has_synthesize_token {rsynthbio} | R 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)
[Package rsynthbio version 2.0.0 Index]