tests/testthat/helper-RNeXML.R

#' @importFrom rlang enquo
expect_true_or_null <- function(o){
  val <- rlang::enquo(o)
  if(!is.null(o)){
    testthat::expect_true(!!val)
  } else {
    testthat::expect_null(!!val)
  }
}

library("XML")

Try the RNeXML package in your browser

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

RNeXML documentation built on Feb. 16, 2023, 6:56 p.m.