tests/testthat/setup.R

tempconfig <- tempfile()
withr::local_envvar(
  GIT_CONFIG_GLOBAL = tempconfig,
  .local_envir = teardown_env()
)
withr::defer(unlink(tempconfig), envir = teardown_env())
r-lib/gitcreds documentation built on June 10, 2025, 10:24 p.m.