tests/doRUnit.R

## unit tests will not be done if RUnit is not available
if(!require("RUnit", quietly = TRUE)) {
  warning("cannot run unit tests -- package RUnit is not available")
  q('no');
} 

 
pkg <- "rstan" 

path <- system.file(package = pkg, "unitTests")
source(file.path(path, "runRunitTests.R"), echo = TRUE)
 

Try the rstan package in your browser

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

rstan documentation built on Nov. 8, 2018, 1:04 a.m.