tests/testthat/test_set_renv.R

context("set_renv")

test_that("set_renv", {
  skip_on_cran()

  rtweet:::set_renv(TEST_PAT = "asdf")
  expect_equal(Sys.getenv("TEST_PAT"), "asdf")
})

Try the rtweet package in your browser

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

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.