tests/testthat/helper-functions.R

options_check <- function(options, result) {
  for (index in seq_along(options)) {
    name <- names(options[index])
    if (!is.null(result[[name]])) {
      expect_equal(result[[name]], options[[name]])
    }
  }
}

Try the r3dmol package in your browser

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

r3dmol documentation built on March 14, 2021, 5:08 p.m.