tests/testthat/helpers.R

library(solvebio)

assert_api_key <- function() {
    token <- solvebio:::.solveEnv$token
    if (is.null(token) || nchar(token) == 0) {
        skip("API key not set")
    }
}

Try the solvebio package in your browser

Any scripts or data that you put into this service are public.

solvebio documentation built on May 17, 2022, 5:06 p.m.