tests/testthat/test-activate_env.R

test_that("activate_env works", {
    
    conda_env <- echoconda::activate_env(conda_env = "echoR")
    testthat::expect_equal(
        conda_env,
        if (echoconda::env_exists("echoR")) "echoR" else "base"
    )

    conda_env <- echoconda::activate_env(conda_env = "base")
    testthat::expect_equal(conda_env, "base")
})
RajLabMSSM/echoconda documentation built on June 6, 2024, 10:38 a.m.