tests/test_R_user_dir.R

source("helper/helper.R")

if (exists("R_user_dir", envir = asNamespace("tools"))) {
  f = get("R_user_dir", envir = asNamespace("tools"))
  expect_same = makeCompareFun(f, backports:::R_user_dir)

  expect_same("backports")
  expect_same("backports", which = "data")
  expect_same("backports", which = "config")
  expect_same("backports", which = "cache")
}

Try the backports package in your browser

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

backports documentation built on June 24, 2024, 5:24 p.m.