File: doRUnit.R

package info (click to toggle)
r-cran-rstan 2.19.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,224 kB
  • sloc: cpp: 9,509; sh: 13; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

## 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)