tests/testthat/test-uses_func.R

context("uses_func")

test_that("uses_func works with the current version of testthat", {
  expect_true(swirl:::uses_func("info")(parse(text="info()"))[[1]])
})

Try the swirl package in your browser

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

swirl documentation built on Jan. 16, 2020, 5:03 p.m.