tests/RUnit.R

##
## RUnit.r - run unit tests in inst/unittests
##
## This file is based on code in the CRAN package 'fBasics', which in
## turn is based on code from the 'gdata' package.
##

pkg <- "emoa"

if (require("RUnit", quietly=TRUE)) {
  wd <- getwd()
  library(package=pkg, character.only=TRUE)  
  path <- system.file("unittests", package = pkg)
  stopifnot(file.exists(path), file.info(path.expand(path))$isdir)
  source(file.path(path, "runner.r"), echo = TRUE)
}

Try the emoa package in your browser

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

emoa documentation built on March 13, 2020, 2:59 a.m.