tests/testthat/test_set-env.R

test_that("auk_set_ebd_path()", {
  renv <- file.path(temp_dir, ".Renviron")
  Sys.setenv(R_ENVIRON_USER=renv)
  returned_path <- auk_set_ebd_path(temp_dir)
  expect_equal(returned_path, normalizePath(temp_dir, winslash = "/"))
  expect_equal(returned_path, Sys.getenv("EBD_PATH"))
})

Try the auk package in your browser

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

auk documentation built on Nov. 14, 2023, 5:10 p.m.