tests/testthat/test-create_base_env.R

testthat::test_that("Create base env", {
  testthat::skip_if_offline()
  testthat::skip_on_cran()

  if (fs::dir_exists(fs::path(get_install_dir(), "envs", "condathis-env"))) {
    fs::dir_delete(fs::path(get_install_dir(), "envs", "condathis-env"))
  }
  create_base_env(verbose = "silent")
  testthat::expect_true(
    fs::file_exists(
      fs::path(
        get_install_dir(), "envs", "condathis-env", "conda-meta", "history"
      )
    )
  )
})

Try the condathis package in your browser

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

condathis documentation built on June 8, 2025, 11:06 a.m.