tests/testthat/test_zz_UNinstall_test.R

library(testthat)
library(text)

test_that("UNinstalling text", {
  skip_on_cran()

  if (Sys.info()["sysname"] == "Darwin" | Sys.info()["sysname"] == "Windows") {
  text::textrpp_uninstall(
    prompt = FALSE,
    envname = "test_ok")

  }

  x_ok <- 1
  expect_equal(x_ok, 1)


})

Try the text package in your browser

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

text documentation built on Sept. 11, 2024, 7:22 p.m.