tests/test_deparse1.R

source("helper/helper.R")

if (exists("deparse1", envir = baseenv())) {
  f = get("deparse1", envir = baseenv())
  expect_same = makeCompareFun(f, backports:::deparse1)

  expect_same(args(stats::lm))
  e = quote(`foo bar`)
  expect_same(e)
  expect_same(e, backtick = TRUE)
  e = quote(`foo bar`+1)
  expect_same(e)
  expect_same(e, control = "all")

}

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.